# Bioinformatics and Systems Biology: Expression, Regulation and Networks
​
## Benno Verbelen - r0301806
## Ruben Weckx - r0304814                                                            

Bioinformatics and Systems Biology: Expression, Regulation and Networks

Benno Verbelen - r0301806

Ruben Weckx - r0304814

xxxxxxxxxx
# Reference paper:
K Suknuntha, Y Ishii, L Tao, K Hu, BE McIntosh, D Yang, S Swanson, R Stewart, JYJ Wang, J Thomson, I Slukvin. Discovery of survival factor for primitive chronic myeloid leukemia cells using induced pluripotent stem cells. Stem Cell Res 2015. 15(3): 678-693.
​
GEO accession number: GSE60065
​
The original ipynb files can be found at Benno Verbelen (r0301806) in /mnt/storage/r0301806/jupyternotebooks
​
All resulting data obtained or produced during this assignment can be found at the following locations: 
/mnt/storage/r0301806/RNAseqgroepswerk/ (Benno Verbelen)
/mnt/storage/r0304814/RNAseqgroepswerk/ (Ruben Weckx)
/mnt/storage/r0304814/chip/ (Ruben Weckx)
​
# Introduction
​
Chronic myeloid leukemia (CML) originates in hematopoietic stem cells (HSC) within the bone marrow by a chromosomal t(9;22)(q34;q11.2) translocation, known as the Philadelphia translocation. This causes the constitutive expression of the oncogenic BCR-ABL fusion protein, a serine/threonine and tyrosine kinase. Tyrosine kinase inhibitors (TKI), like imatinib, have previously been found to induce complete cytogenetic response in most patients, however relapse of the disease is commonly seen when TKI treatment is discontinued. It was suggested that HSCs could carry leukemic stem cell (LSC) features, including innate resistance to TKI therapy. Therefore, research of primitive LSCs is needed for a better understanding of CML pathogenesis, as well as therapeutic strategies of the disease. 
Human somatic induced pluripotent stem cells (iPSCs) were generated and used as a model for primitive HSCs. iPSCs could also be generated from primary CML cells. Subsequently, these iPSCs were differentiated back into blood cells, resulting in unlimited production of primitive HSC carrying LCS features. 
CML LSCs  were derived from a patient with CML in chronic phase and remodeled into iPSCs (CML15 iPSCs and CML17 iPSCs). Bone-marrow (BM) derived iPSCs (BM1K and BM9) were used as control. CML and control iPSCs were pushed towards becoming CML iPSC-derived lin-CD34+CD90+CD117+CD45+38+/−, referred to as induced CD34+ cells (iCD34+).
Two different conditions were tested for BM and CML samples:
 
BM1K iCD34+ untreated
BM9 iCD34+ untreated
CML15 iCD34+ untreated
CML17 iCD34+ untreated
BM1K iCD34+ treated with imatinib
BM9 iCD34+ treated with imatinib
CML15 iCD34+ treated with imatinib
CML17 iCD34+ treated with imatinib 
​
# Results
​
For our project we will look for genes that have altered expression levels in CML samples after imatinib treatment, which is not seen in healthy BM samples. 
​
We uploaded our dataset from the GEO browser in order to perform RNAseq analysis (as was done in the article). We first performed a quality control (QC) regarding our data. No unexpected abnormalities were found (fastqc.html-files). Afterwards, all sequences were mapped (STAR), aligned (sam-files), compressed, sorted and indexed (bam-files). Next, by using the idxstats command from samtools we showed the number of mapped reads per chromosome. Via flagstat, we looked at the QC-passed and -failed reads. The output showed no QC-failed reads, which confirms good quality of our initial samples. The number of reads per gene were counted using the featureCounts command and stored in the output file for BM (/mnt/storage/r0304814/RNAseqgroepswerk/all.CMLcounts1)) and CML samples (/mnt/storage/r0301806/RNAseqgroepswerk/all.CMLcounts2). To look at the gene expression levels, we first converted this file to an excel-accessible file (tsv-file). 
We now wanted to calculate the log2 fold change for bone marrow and CML tissue samples, via differential expression sequence analysis. We looked for candidate genes which could provide imatinib resistance in CML cells. In the article they mention their inclusion and exclusion criteria: 
“From the list of upregulated genes, we chose 137 that were induced ≥2 fold by imatinib treatment (…). Then, we selected genes that were upregulated in CML iCD34+ cells, but suppressed in BM iCD34+ cells (…). A similar algorithm was applied for down-regulated genes. From the list of significantly downregulated genes, we chose those that were suppressed ≥2 fold by imatinib in CML iCD34+ (16 genes). We then selected genes that were suppressed in CML iCD34+ cells, but upregulated in BM iCD34+ cells (…).”  
In BM samples 618 genes were upregulated and 762 were downregulated. For CML samples 200 genes were upregulated and 39 were downregulated. We applied the same criteria to our resulting dataset, leaving us with 133 upregulated genes and 39 downregulated genes associated with imatinib treatment for CML samples. In the article, BCL2A1, ALOX15 and SMAD7 were found to be upregulated. In addition, their research showed OLFM4 to be the top-ranking upregulated gene. However, according to their criteria, our results excluded these genes from the list of candidate target genes i.e. a gene upregulated in CML samples, but downregulated in BM samples and vice versa. The researchers of this article used EBseq(v.1.1.6) software (http://www.biostat.wisc.edu/~kendzior/EBSEQ/). We performed all our calculations as taught in class, this was the only difference between our conduct of work. We tried to reproduce their results by using the same software they used, but we were unable to do so due to technical difficulties. We continued with our data.
​
We then ran our data in GSEA. A ranked file (.rnk) was made, which consisted of 2 columns (gene symbols, expression score). KEGG was used as the gene set database. As a control we looked at the hematopoietic cell lineage enrichment for the CML samples, which showed that a number of upregulated genes were positively correlated with differentiation of precursor bone marrow cells to the hematopoietic cell lineage. This can be explained by the concept of CML, an overproduction of white blood cells. We also looked at cell cycle enrichment in CML samples and showed an enrichment at the negative side, meaning that downregulated genes are involved in the cell cycle. 

Reference paper:

K Suknuntha, Y Ishii, L Tao, K Hu, BE McIntosh, D Yang, S Swanson, R Stewart, JYJ Wang, J Thomson, I Slukvin. Discovery of survival factor for primitive chronic myeloid leukemia cells using induced pluripotent stem cells. Stem Cell Res 2015. 15(3): 678-693.

GEO accession number: GSE60065

The original ipynb files can be found at Benno Verbelen (r0301806) in /mnt/storage/r0301806/jupyternotebooks

All resulting data obtained or produced during this assignment can be found at the following locations: /mnt/storage/r0301806/RNAseqgroepswerk/ (Benno Verbelen) /mnt/storage/r0304814/RNAseqgroepswerk/ (Ruben Weckx) /mnt/storage/r0304814/chip/ (Ruben Weckx)

Introduction

Chronic myeloid leukemia (CML) originates in hematopoietic stem cells (HSC) within the bone marrow by a chromosomal t(9;22)(q34;q11.2) translocation, known as the Philadelphia translocation. This causes the constitutive expression of the oncogenic BCR-ABL fusion protein, a serine/threonine and tyrosine kinase. Tyrosine kinase inhibitors (TKI), like imatinib, have previously been found to induce complete cytogenetic response in most patients, however relapse of the disease is commonly seen when TKI treatment is discontinued. It was suggested that HSCs could carry leukemic stem cell (LSC) features, including innate resistance to TKI therapy. Therefore, research of primitive LSCs is needed for a better understanding of CML pathogenesis, as well as therapeutic strategies of the disease. Human somatic induced pluripotent stem cells (iPSCs) were generated and used as a model for primitive HSCs. iPSCs could also be generated from primary CML cells. Subsequently, these iPSCs were differentiated back into blood cells, resulting in unlimited production of primitive HSC carrying LCS features. CML LSCs were derived from a patient with CML in chronic phase and remodeled into iPSCs (CML15 iPSCs and CML17 iPSCs). Bone-marrow (BM) derived iPSCs (BM1K and BM9) were used as control. CML and control iPSCs were pushed towards becoming CML iPSC-derived lin-CD34+CD90+CD117+CD45+38+/−, referred to as induced CD34+ cells (iCD34+). Two different conditions were tested for BM and CML samples:

BM1K iCD34+ untreated BM9 iCD34+ untreated CML15 iCD34+ untreated CML17 iCD34+ untreated BM1K iCD34+ treated with imatinib BM9 iCD34+ treated with imatinib CML15 iCD34+ treated with imatinib CML17 iCD34+ treated with imatinib

Results

For our project we will look for genes that have altered expression levels in CML samples after imatinib treatment, which is not seen in healthy BM samples.

We uploaded our dataset from the GEO browser in order to perform RNAseq analysis (as was done in the article). We first performed a quality control (QC) regarding our data. No unexpected abnormalities were found (fastqc.html-files). Afterwards, all sequences were mapped (STAR), aligned (sam-files), compressed, sorted and indexed (bam-files). Next, by using the idxstats command from samtools we showed the number of mapped reads per chromosome. Via flagstat, we looked at the QC-passed and -failed reads. The output showed no QC-failed reads, which confirms good quality of our initial samples. The number of reads per gene were counted using the featureCounts command and stored in the output file for BM (/mnt/storage/r0304814/RNAseqgroepswerk/all.CMLcounts1)) and CML samples (/mnt/storage/r0301806/RNAseqgroepswerk/all.CMLcounts2). To look at the gene expression levels, we first converted this file to an excel-accessible file (tsv-file). We now wanted to calculate the log2 fold change for bone marrow and CML tissue samples, via differential expression sequence analysis. We looked for candidate genes which could provide imatinib resistance in CML cells. In the article they mention their inclusion and exclusion criteria: “From the list of upregulated genes, we chose 137 that were induced ≥2 fold by imatinib treatment (…). Then, we selected genes that were upregulated in CML iCD34+ cells, but suppressed in BM iCD34+ cells (…). A similar algorithm was applied for down-regulated genes. From the list of significantly downregulated genes, we chose those that were suppressed ≥2 fold by imatinib in CML iCD34+ (16 genes). We then selected genes that were suppressed in CML iCD34+ cells, but upregulated in BM iCD34+ cells (…).”
In BM samples 618 genes were upregulated and 762 were downregulated. For CML samples 200 genes were upregulated and 39 were downregulated. We applied the same criteria to our resulting dataset, leaving us with 133 upregulated genes and 39 downregulated genes associated with imatinib treatment for CML samples. In the article, BCL2A1, ALOX15 and SMAD7 were found to be upregulated. In addition, their research showed OLFM4 to be the top-ranking upregulated gene. However, according to their criteria, our results excluded these genes from the list of candidate target genes i.e. a gene upregulated in CML samples, but downregulated in BM samples and vice versa. The researchers of this article used EBseq(v.1.1.6) software (http://www.biostat.wisc.edu/~kendzior/EBSEQ/). We performed all our calculations as taught in class, this was the only difference between our conduct of work. We tried to reproduce their results by using the same software they used, but we were unable to do so due to technical difficulties. We continued with our data.

We then ran our data in GSEA. A ranked file (.rnk) was made, which consisted of 2 columns (gene symbols, expression score). KEGG was used as the gene set database. As a control we looked at the hematopoietic cell lineage enrichment for the CML samples, which showed that a number of upregulated genes were positively correlated with differentiation of precursor bone marrow cells to the hematopoietic cell lineage. This can be explained by the concept of CML, an overproduction of white blood cells. We also looked at cell cycle enrichment in CML samples and showed an enrichment at the negative side, meaning that downregulated genes are involved in the cell cycle.

 
<img width="50%" src="/user/r0301806/files/GSEAlineage.jpg">
<img width="50%" src="/user/r0301806/files/GSEAcycle.jpg">

Furthermore, we ran our list of up- and downregulated genes to the background list of all genes generated by RNAseq in GOrilla (http://cbl-gorilla.cs.technion.ac.il/GOrilla/shmnv4uj/GOResults.html). These genes were significantly involved in the following processes which we considered to be associated with CML: Regulation of apoptotic processes, positive regulation of macrophage chemotaxis, positive regulation of Ras protein signal transduction, … . 

Furthermore, we ran our list of up- and downregulated genes to the background list of all genes generated by RNAseq in GOrilla (http://cbl-gorilla.cs.technion.ac.il/GOrilla/shmnv4uj/GOResults.html). These genes were significantly involved in the following processes which we considered to be associated with CML: Regulation of apoptotic processes, positive regulation of macrophage chemotaxis, positive regulation of Ras protein signal transduction, … .

 
<img width="80%" src="/user/r0301806/files/GOrilla.jpg">

xxxxxxxxxx
 
To visualize the changes in gene expression due to imatinib (the 133 upregulated genes and 39 downregulated genes), we generated a heat map using the Multi-Experiment Viewer tool. (only a part of the heat map is shown in the figure)

To visualize the changes in gene expression due to imatinib (the 133 upregulated genes and 39 downregulated genes), we generated a heat map using the Multi-Experiment Viewer tool. (only a part of the heat map is shown in the figure)

 
<img width="90%" src="/user/r0301806/files/HeatMap2.jpg">

 
Subsequently, we predicted possible regulators and targets of the transcription factor within our set of genes via the Cytoscape iRegulon application. For the upregulated genes, PITX3 had the highest NES score of 4.007 (closely followed by BRCA1 and MYBL2). The transcription factor SRF had the highest NES score of 5.656 for the downregulated genes (followed by SIN3A and HOXA3). 

Subsequently, we predicted possible regulators and targets of the transcription factor within our set of genes via the Cytoscape iRegulon application. For the upregulated genes, PITX3 had the highest NES score of 4.007 (closely followed by BRCA1 and MYBL2). The transcription factor SRF had the highest NES score of 5.656 for the downregulated genes (followed by SIN3A and HOXA3).

 
<img width="30%" src="/user/r0301806/files/PITX3.jpg"> 
<img width="30%" src="/user/r0301806/files/SRF.jpg">

xxxxxxxxxx
Lastly, the most enriched motives for these two transcription factors were discovered. Transfec_public-M00021 and tiapale-NNMCCATATAWGGKNN-SRF-full for PITX3 and SRF respectively.

Lastly, the most enriched motives for these two transcription factors were discovered. Transfec_public-M00021 and tiapale-NNMCCATATAWGGKNN-SRF-full for PITX3 and SRF respectively.

 
<img width="30%" src="/user/r0301806/files/PITX3motive.jpg">

 
<img width="30%" src="/user/r0301806/files/SRFmotive.jpg">

xxxxxxxxxx
# ChIPseq
​
We went to ChIP-Atlas to look for ChIPseq data concerning PITX3 and SRF. Apparently, no ChIPseq studies are conducted for PITX3. Therefore, we looked at studies done on BRCA1 and MYBL2 but came to the conclusion that none of our upregulated target genes generated by iRegulon were listed as potential target genes for BRCA1 or MYBL2 in any of the studies. However, available SRF ChIPseq studies did mention some of our target downregulated genes (EGR1, FOS, DUSP2) as potential target genes. We therefore decided to only analyze ChIP data for SRF. The most relevant study available used blood cells as cell type (GSM803350). However, they did not analyze any cancerous cells nor did they apply any particular treatment or protocols to their samples. The files containing the narrowpeaks (bed-files) were obtained using the bowtie2 command. The generated reads and the peaks were uploaded in igv. We looked at the above mentioned downregulated genes which are potential targets for SRF. The goal of the ChIPseq was to find peaks in the  promotor regions targeted genes involved in imatinib resistance. And indeed, Peaks were found in the promotor regions of all three genes (EGR1, FOS and DUSP2 respectively, as seen in the figures below). This confirms our hypothesis that SRF affects the expression of these three genes. 

ChIPseq

We went to ChIP-Atlas to look for ChIPseq data concerning PITX3 and SRF. Apparently, no ChIPseq studies are conducted for PITX3. Therefore, we looked at BRCA1 and MYBL2 and came to the conclusion that none of our upregulated target genes generated by iRegulon were listed as potential target genes for BRCA1 or MYBL2. However, SRF ChIPseq studies did exist, mentioning some of our target downregulated genes (EGR1, FOS, DUSP2). We therefore decided to only analyze ChIP data for SRF. The most relevant study available used blood cells as cell type (GSM803350). However, they did not analyze any cancerous cells nor did they apply any particular treatment or protocols. The files containing the narrowpeaks (bed-files) were obtained using the bowtie2 command. The generated reads and the peaks were uploaded in igv. We looked at the above mentioned downregulated genes which are potential targets for SRF. The goal of the ChIPseq was to find peaks in the targeted genes involved in imatinib resistance. Peaks were found in the promotor regions of all three genes (EGR1, FOS and DUSP2 respectively as seen in the figures below). This confirms our hypothesis that SRF affects the expression of these three genes.

 
<img width="50%" src="/user/r0301806/files/EGR1igv.jpg">
<img width="50%" src="/user/r0301806/files/FOSigv.jpg">
<img width="50%" src="/user/r0301806/files/DUSP2igv.jpg">

xxxxxxxxxx
# Discussion
​
After analysis of our data we found possible target genes involved in imatinib resistance in treatment of CML. After comparison with the article, however, we did not find OLFM4, ALOX15, BCL2A1 and SMAD7 to be conform with their inclusion criteria. In other words, these genes did not have a significantly altered expression, so were not included in our analysis. Nonetheless, we continued with our data, which consisted of 133 upregulated and 39 downregulated genes. Based upon these genes, we predicted the transcription factors (and their associated motif) which are involved in the regulation of these target genes. For all significantly upregulated genes, PITX3 emerged as the most enriched transcription factor. For all significantly downregulated genes, SRF was predicted to be the most promising transcription factor. ChIPseq studies were not available for PITX3. Since BRCA1 and MYBL2 did not show possible target genes identical to our own upregulated target genes, we were not able to run a ChIPseq on these transcription factors. But, we were able to run a ChIPseq on SRF, because studies did show three genes matching with our own downregulated genes. The promotor regions of these genes had a high coverage. This implies that they could be used as a possible target for therapy for patients with an imatinib restistant CML profile.

Discussion

After analysis of our data we found possible target genes involved in imatinib resistance in treatment of CML. After comparison with the article, however, we did not find OLFM4, ALOX15, BCL2A1 and SMAD7 to be conform with their inclusion criteria. In other words, these genes did not have a significantly altered expression, so were not included in our analysis. Nonetheless, we continued with our data, which consisted of 133 upregulated and 39 downregulated genes. Based upon these genes, we predicted the transcription factors (and their associated motif) which are involved in the regulation of these target genes. For all significantly upregulated genes, PITX3 emerged as the most enriched transcription factor. For all significantly downregulated genes, SRF was predicted to be the most promising transcription factor. ChIPseq studies were not available for PITX3. Since BRCA1 and MYBL2 did not show possible target genes identical to our own upregulated target genes, we were not able to run a ChIPseq on these transcription factors. But, we were able to run a ChIPseq on SRF, because studies did show three genes matching with our own downregulated genes. The promotor regions of these genes had a high coverage. This implies that they could be used as a possible target for therapy for patients with an imatinib restistant CML profile.

xxxxxxxxxx
# Code:

Code:

 
# RNAseq analysis

RNAseq analysis

In [1]:
 
pwd
/mnt/storage/r0301806/jupyternotebooks
In [3]:
 
mkdir /home/luna.kuleuven.be/r0301806/data/ncbi
mkdir: cannot create directory ‘/home/luna.kuleuven.be/r0301806/data/ncbi’: File exists
In [5]:
 
cd /home/luna.kuleuven.be/r0301806/data/work
In [6]:
 
pwd
/home/luna.kuleuven.be/r0301806/data/work
In [ ]:
 
# To convert our sra sample data link from GEO to fastq files, we need to use the sra toolkit.
# But first, this toolkit needs a cache directory (which cannot be the home directory!), so we create one: 
vdb-config -s /repository/user/main/public/root=~/data/ncbi
# Now we can use the sra toolkit. 
In [ ]:
 
mkdir /home/luna.kuleuven.be/r0301806/data/work
In [7]:
 
cd /home/luna.kuleuven.be/r0301806/data/work
ls
~  LS252.fastq	LS287.fastq  LS292.fastq  NL251.fastq  NL287.fastq  NL292.fastq
In [8]:
 
fastq-dump --split-files SRR1536061
fastq-dump --split-files SRR1536062
fastq-dump --split-files SRR1536063
fastq-dump --split-files SRR1536064
fastq-dump --split-files SRR1536065
fastq-dump --split-files SRR1536066
fastq-dump --split-files SRR1536067
fastq-dump --split-files SRR1536068
Read 33119445 spots for SRR1536061
Written 33119445 spots for SRR1536061
Read 37665353 spots for SRR1536062
Written 37665353 spots for SRR1536062
Read 34659684 spots for SRR1536063
Written 34659684 spots for SRR1536063
Read 51339306 spots for SRR1536064
Written 51339306 spots for SRR1536064
Read 42107774 spots for SRR1536065
Written 42107774 spots for SRR1536065
Read 41614191 spots for SRR1536066
Written 41614191 spots for SRR1536066
Read 45392472 spots for SRR1536067
Written 45392472 spots for SRR1536067
Read 44282036 spots for SRR1536068
Written 44282036 spots for SRR1536068
In [9]:
 
# Give the fastq files another name, which is more recognizable
mv SRR1536061_1.fastq BM1KiCD34ctrl.fastq
mv SRR1536062_1.fastq BM9iCD34ctrl.fastq
mv SRR1536063_1.fastq CML15iCD34ctrl.fastq
mv SRR1536064_1.fastq CML17iCD34ctrl.fastq
mv SRR1536065_1.fastq BM1KiCD34Imatinib.fastq
mv SRR1536066_1.fastq BM9iCD34Imatinib.fastq
mv SRR1536067_1.fastq CML15iCD34Imatinib.fastq
mv SRR1536068_1.fastq CML17iCD34Imatinib.fastq
In [10]:
 
ls
~			 CML15iCD34ctrl.fastq	   LS287.fastq
BM1KiCD34ctrl.fastq	 CML15iCD34Imatinib.fastq  LS292.fastq
BM1KiCD34Imatinib.fastq  CML17iCD34ctrl.fastq	   NL251.fastq
BM9iCD34ctrl.fastq	 CML17iCD34Imatinib.fastq  NL287.fastq
BM9iCD34Imatinib.fastq	 LS252.fastq		   NL292.fastq
In [ ]:
 
mkdir -p /home/luna.kuleuven.be/r0301806/data/RNAseqgroepswerk
In [11]:
 
cd ~/data/RNAseqgroepswerk
pwd
/home/luna.kuleuven.be/r0301806/data/RNAseqgroepswerk
In [14]:
 
# Create a symbolic (-s) link to the fastq files in your RNAseqgroepswerk directory, by using the ln command.
# -f : remove existing destination files
ln -sf /mnt/nfs/r0301806/work/*.fastq ~/data/RNAseqgroepswerk/
ls -l
total 50773608
-rw-r--r-- 1 r0301806 domain users    8893494 nov 21 16:02 all.counts
-rw-r--r-- 1 r0301806 domain users        581 nov 21 16:02 all.counts.summary
-rw-r--r-- 1 r0301806 domain users    8236287 nov 21 16:03 all.genedatapsoriasis.tsv
-rw-r--r-- 1 r0301806 domain users    1042835 nov 21 16:03 all.genepsoriasis.counts.tsv
lrwxrwxrwx 1 r0301806 domain users         42 dec  4 22:00 BM1KiCD34ctrl.fastq -> /mnt/nfs/r0301806/work/BM1KiCD34ctrl.fastq
lrwxrwxrwx 1 r0301806 domain users         46 dec  4 22:00 BM1KiCD34Imatinib.fastq -> /mnt/nfs/r0301806/work/BM1KiCD34Imatinib.fastq
lrwxrwxrwx 1 r0301806 domain users         41 dec  4 22:00 BM9iCD34ctrl.fastq -> /mnt/nfs/r0301806/work/BM9iCD34ctrl.fastq
lrwxrwxrwx 1 r0301806 domain users         45 dec  4 22:00 BM9iCD34Imatinib.fastq -> /mnt/nfs/r0301806/work/BM9iCD34Imatinib.fastq
lrwxrwxrwx 1 r0301806 domain users         43 dec  4 22:00 CML15iCD34ctrl.fastq -> /mnt/nfs/r0301806/work/CML15iCD34ctrl.fastq
lrwxrwxrwx 1 r0301806 domain users         47 dec  4 22:00 CML15iCD34Imatinib.fastq -> /mnt/nfs/r0301806/work/CML15iCD34Imatinib.fastq
lrwxrwxrwx 1 r0301806 domain users         43 dec  4 22:00 CML17iCD34ctrl.fastq -> /mnt/nfs/r0301806/work/CML17iCD34ctrl.fastq
lrwxrwxrwx 1 r0301806 domain users         47 dec  4 22:00 CML17iCD34Imatinib.fastq -> /mnt/nfs/r0301806/work/CML17iCD34Imatinib.fastq
-rw-r--r-- 1 r0301806 domain users    3650241 nov 23 14:32 deseq.results.tsv
lrwxrwxrwx 1 r0301806 domain users         30 dec  4 21:58 *.fastq -> /mnt/nfs/r0304814/work/*.fastq
lrwxrwxrwx 1 r0301806 domain users         56 nov 21 15:48 gencode.v19.nopseudo.plus.sort.gtf -> /mnt/nfs/data/RNA-seq/gencode.v19.nopseudo.plus.sort.gtf
-rw-r--r-- 1 r0301806 domain users 6454489687 nov 21 01:56 LS252.Aligned.out.sam
-rw-r--r-- 1 r0301806 domain users 1789388164 nov 21 12:30 LS252.bam
-rw-r--r-- 1 r0301806 domain users    3400288 nov 21 14:11 LS252.bam.bai
-rw-r--r-- 1 r0301806 domain users    8344733 nov 21 15:53 LS252.counts
-rw-r--r-- 1 r0301806 domain users        296 nov 21 15:53 LS252.counts.summary
lrwxrwxrwx 1 r0301806 domain users         34 dec  4 22:00 LS252.fastq -> /mnt/nfs/r0301806/work/LS252.fastq
-rw-r--r-- 1 r0301806 domain users     360945 nov 21 00:07 LS252_fastqc.html
-rw-r--r-- 1 r0301806 domain users     488111 nov 21 00:07 LS252_fastqc.zip
-rw-r--r-- 1 r0301806 domain users       1861 nov 21 01:56 LS252.Log.final.out
-rw-r--r-- 1 r0301806 domain users      15529 nov 21 01:56 LS252.Log.out
-rw-r--r-- 1 r0301806 domain users       1662 nov 21 01:56 LS252.Log.progress.out
-rw-r--r-- 1 r0301806 domain users    4764141 nov 21 01:56 LS252.SJ.out.tab
-rw-r--r-- 1 r0301806 domain users 7415056438 nov 21 02:08 LS287.Aligned.out.sam
-rw-r--r-- 1 r0301806 domain users 1664684723 nov 21 14:23 LS287.bam
-rw-r--r-- 1 r0301806 domain users    3314240 nov 21 14:30 LS287.bam.bai
-rw-r--r-- 1 r0301806 domain users    8347231 nov 21 15:54 LS287.counts
-rw-r--r-- 1 r0301806 domain users        296 nov 21 15:54 LS287.counts.summary
lrwxrwxrwx 1 r0301806 domain users         34 dec  4 22:00 LS287.fastq -> /mnt/nfs/r0301806/work/LS287.fastq
-rw-r--r-- 1 r0301806 domain users     347480 nov 21 00:16 LS287_fastqc.html
-rw-r--r-- 1 r0301806 domain users     398871 nov 21 00:16 LS287_fastqc.zip
-rw-r--r-- 1 r0301806 domain users       1862 nov 21 02:08 LS287.Log.final.out
-rw-r--r-- 1 r0301806 domain users      15529 nov 21 02:08 LS287.Log.out
-rw-r--r-- 1 r0301806 domain users       1544 nov 21 02:08 LS287.Log.progress.out
-rw-r--r-- 1 r0301806 domain users    5397055 nov 21 02:08 LS287.SJ.out.tab
-rw-r--r-- 1 r0301806 domain users 7007092341 nov 21 02:29 LS292.Aligned.out.sam
-rw-r--r-- 1 r0301806 domain users 1533098382 nov 21 14:45 LS292.bam
-rw-r--r-- 1 r0301806 domain users    3333560 nov 21 14:50 LS292.bam.bai
-rw-r--r-- 1 r0301806 domain users    8345888 nov 21 15:54 LS292.counts
-rw-r--r-- 1 r0301806 domain users        296 nov 21 15:54 LS292.counts.summary
lrwxrwxrwx 1 r0301806 domain users         34 dec  4 22:00 LS292.fastq -> /mnt/nfs/r0301806/work/LS292.fastq
-rw-r--r-- 1 r0301806 domain users     352315 nov 21 00:26 LS292_fastqc.html
-rw-r--r-- 1 r0301806 domain users     407732 nov 21 00:26 LS292_fastqc.zip
-rw-r--r-- 1 r0301806 domain users       1862 nov 21 02:29 LS292.Log.final.out
-rw-r--r-- 1 r0301806 domain users      15529 nov 21 02:29 LS292.Log.out
-rw-r--r-- 1 r0301806 domain users       1544 nov 21 02:29 LS292.Log.progress.out
-rw-r--r-- 1 r0301806 domain users    5091426 nov 21 02:29 LS292.SJ.out.tab
-rw-r--r-- 1 r0301806 domain users 7350612418 nov 21 02:45 NL251.Aligned.out.sam
-rw-r--r-- 1 r0301806 domain users 1632509502 nov 21 14:59 NL251.bam
-rw-r--r-- 1 r0301806 domain users    3291184 nov 21 15:01 NL251.bam.bai
-rw-r--r-- 1 r0301806 domain users    8345311 nov 21 15:55 NL251.counts
-rw-r--r-- 1 r0301806 domain users        296 nov 21 15:55 NL251.counts.summary
lrwxrwxrwx 1 r0301806 domain users         34 dec  4 22:00 NL251.fastq -> /mnt/nfs/r0301806/work/NL251.fastq
-rw-r--r-- 1 r0301806 domain users     366906 nov 21 00:55 NL251_fastqc.html
-rw-r--r-- 1 r0301806 domain users     425938 nov 21 00:55 NL251_fastqc.zip
-rw-r--r-- 1 r0301806 domain users       1862 nov 21 02:45 NL251.Log.final.out
-rw-r--r-- 1 r0301806 domain users      15529 nov 21 02:45 NL251.Log.out
-rw-r--r-- 1 r0301806 domain users       1662 nov 21 02:45 NL251.Log.progress.out
-rw-r--r-- 1 r0301806 domain users    4902687 nov 21 02:45 NL251.SJ.out.tab
-rw-r--r-- 1 r0301806 domain users          0 nov 21 02:51 NL286.Aligned.out.sam
-rw-r--r-- 1 r0301806 domain users 1541773300 nov 21 15:21 NL286.bam
-rw-r--r-- 1 r0301806 domain users    3387208 nov 21 15:22 NL286.bam.bai
-rw-r--r-- 1 r0301806 domain users    8345371 nov 21 15:56 NL286.counts
-rw-r--r-- 1 r0301806 domain users        296 nov 21 15:56 NL286.counts.summary
-rw-r--r-- 1 r0301806 domain users      13128 nov 21 02:51 NL286.Log.out
-rw-r--r-- 1 r0301806 domain users          0 nov 21 02:51 NL286.Log.progress.out
drwx------ 2 r0301806 domain users       4096 nov 21 02:51 NL286._STARtmp
-rw-r--r-- 1 r0301806 domain users 7218709786 nov 21 03:04 NL287.Aligned.out.sam
lrwxrwxrwx 1 r0301806 domain users         34 dec  4 22:00 NL287.fastq -> /mnt/nfs/r0301806/work/NL287.fastq
-rw-r--r-- 1 r0301806 domain users     343862 nov 21 01:11 NL287_fastqc.html
-rw-r--r-- 1 r0301806 domain users     397127 nov 21 01:11 NL287_fastqc.zip
-rw-r--r-- 1 r0301806 domain users       1862 nov 21 03:04 NL287.Log.final.out
-rw-r--r-- 1 r0301806 domain users      15529 nov 21 03:04 NL287.Log.out
-rw-r--r-- 1 r0301806 domain users       1662 nov 21 03:04 NL287.Log.progress.out
-rw-r--r-- 1 r0301806 domain users    4939340 nov 21 03:04 NL287.SJ.out.tab
-rw-r--r-- 1 r0301806 domain users 1456424671 nov 21 15:30 NL291.bam
-rw-r--r-- 1 r0301806 domain users    3334656 nov 21 15:31 NL291.bam.bai
-rw-r--r-- 1 r0301806 domain users    8345915 nov 21 15:56 NL291.counts
-rw-r--r-- 1 r0301806 domain users        296 nov 21 15:56 NL291.counts.summary
-rw-r--r-- 1 r0301806 domain users 6801108258 nov 21 03:21 NL292.Aligned.out.sam
lrwxrwxrwx 1 r0301806 domain users         34 dec  4 22:00 NL292.fastq -> /mnt/nfs/r0301806/work/NL292.fastq
-rw-r--r-- 1 r0301806 domain users     368992 nov 21 01:28 NL292_fastqc.html
-rw-r--r-- 1 r0301806 domain users     434603 nov 21 01:28 NL292_fastqc.zip
-rw-r--r-- 1 r0301806 domain users       1862 nov 21 03:21 NL292.Log.final.out
-rw-r--r-- 1 r0301806 domain users      15529 nov 21 03:21 NL292.Log.out
-rw-r--r-- 1 r0301806 domain users       1544 nov 21 03:21 NL292.Log.progress.out
-rw-r--r-- 1 r0301806 domain users    5139326 nov 21 03:21 NL292.SJ.out.tab
In [16]:
 
# Produce a quality analysis report of the fastq files: 
/usr/local/bin/FastQC/fastqc -o . BM1KiCD34ctrl.fastq
/usr/local/bin/FastQC/fastqc -o . BM9iCD34ctrl.fastq
/usr/local/bin/FastQC/fastqc -o . CML15iCD34ctrl.fastq
/usr/local/bin/FastQC/fastqc -o . CML17iCD34ctrl.fastq
/usr/local/bin/FastQC/fastqc -o . BM1KiCD34Imatinib.fastq
/usr/local/bin/FastQC/fastqc -o . BM9iCD34Imatinib.fastq
/usr/local/bin/FastQC/fastqc -o . CML15iCD34Imatinib.fastq
/usr/local/bin/FastQC/fastqc -o . CML17iCD34Imatinib.fastq
Started analysis of BM1KiCD34ctrl.fastq
Approx 5% complete for BM1KiCD34ctrl.fastq
Approx 10% complete for BM1KiCD34ctrl.fastq
Approx 15% complete for BM1KiCD34ctrl.fastq
Approx 20% complete for BM1KiCD34ctrl.fastq
Approx 25% complete for BM1KiCD34ctrl.fastq
Approx 30% complete for BM1KiCD34ctrl.fastq
Approx 35% complete for BM1KiCD34ctrl.fastq
Approx 40% complete for BM1KiCD34ctrl.fastq
Approx 45% complete for BM1KiCD34ctrl.fastq
Approx 50% complete for BM1KiCD34ctrl.fastq
Approx 55% complete for BM1KiCD34ctrl.fastq
Approx 60% complete for BM1KiCD34ctrl.fastq
Approx 65% complete for BM1KiCD34ctrl.fastq
Approx 70% complete for BM1KiCD34ctrl.fastq
Approx 75% complete for BM1KiCD34ctrl.fastq
Approx 80% complete for BM1KiCD34ctrl.fastq
Approx 85% complete for BM1KiCD34ctrl.fastq
Approx 90% complete for BM1KiCD34ctrl.fastq
Approx 95% complete for BM1KiCD34ctrl.fastq
Analysis complete for BM1KiCD34ctrl.fastq
Started analysis of BM9iCD34ctrl.fastq
Approx 5% complete for BM9iCD34ctrl.fastq
Approx 10% complete for BM9iCD34ctrl.fastq
Approx 15% complete for BM9iCD34ctrl.fastq
Approx 20% complete for BM9iCD34ctrl.fastq
Approx 25% complete for BM9iCD34ctrl.fastq
Approx 30% complete for BM9iCD34ctrl.fastq
Approx 35% complete for BM9iCD34ctrl.fastq
Approx 40% complete for BM9iCD34ctrl.fastq
Approx 45% complete for BM9iCD34ctrl.fastq
Approx 50% complete for BM9iCD34ctrl.fastq
Approx 55% complete for BM9iCD34ctrl.fastq
Approx 60% complete for BM9iCD34ctrl.fastq
Approx 65% complete for BM9iCD34ctrl.fastq
Approx 70% complete for BM9iCD34ctrl.fastq
Approx 75% complete for BM9iCD34ctrl.fastq
Approx 80% complete for BM9iCD34ctrl.fastq
Approx 85% complete for BM9iCD34ctrl.fastq
Approx 90% complete for BM9iCD34ctrl.fastq
Approx 95% complete for BM9iCD34ctrl.fastq
Analysis complete for BM9iCD34ctrl.fastq
Started analysis of CML15iCD34ctrl.fastq
Approx 5% complete for CML15iCD34ctrl.fastq
Approx 10% complete for CML15iCD34ctrl.fastq
Approx 15% complete for CML15iCD34ctrl.fastq
Approx 20% complete for CML15iCD34ctrl.fastq
Approx 25% complete for CML15iCD34ctrl.fastq
Approx 30% complete for CML15iCD34ctrl.fastq
Approx 35% complete for CML15iCD34ctrl.fastq
Approx 40% complete for CML15iCD34ctrl.fastq
Approx 45% complete for CML15iCD34ctrl.fastq
Approx 50% complete for CML15iCD34ctrl.fastq
Approx 55% complete for CML15iCD34ctrl.fastq
Approx 60% complete for CML15iCD34ctrl.fastq
Approx 65% complete for CML15iCD34ctrl.fastq
Approx 70% complete for CML15iCD34ctrl.fastq
Approx 75% complete for CML15iCD34ctrl.fastq
Approx 80% complete for CML15iCD34ctrl.fastq
Approx 85% complete for CML15iCD34ctrl.fastq
Approx 90% complete for CML15iCD34ctrl.fastq
Approx 95% complete for CML15iCD34ctrl.fastq
Analysis complete for CML15iCD34ctrl.fastq
Started analysis of CML17iCD34ctrl.fastq
Approx 5% complete for CML17iCD34ctrl.fastq
Approx 10% complete for CML17iCD34ctrl.fastq
Approx 15% complete for CML17iCD34ctrl.fastq
Approx 20% complete for CML17iCD34ctrl.fastq
Approx 25% complete for CML17iCD34ctrl.fastq
Approx 30% complete for CML17iCD34ctrl.fastq
Approx 35% complete for CML17iCD34ctrl.fastq
Approx 40% complete for CML17iCD34ctrl.fastq
Approx 45% complete for CML17iCD34ctrl.fastq
Approx 50% complete for CML17iCD34ctrl.fastq
Approx 55% complete for CML17iCD34ctrl.fastq
Approx 60% complete for CML17iCD34ctrl.fastq
Approx 65% complete for CML17iCD34ctrl.fastq
Approx 70% complete for CML17iCD34ctrl.fastq
Approx 75% complete for CML17iCD34ctrl.fastq
Approx 80% complete for CML17iCD34ctrl.fastq
Approx 85% complete for CML17iCD34ctrl.fastq
Approx 90% complete for CML17iCD34ctrl.fastq
Approx 95% complete for CML17iCD34ctrl.fastq
Analysis complete for CML17iCD34ctrl.fastq
Started analysis of BM1KiCD34Imatinib.fastq
Approx 5% complete for BM1KiCD34Imatinib.fastq
Approx 10% complete for BM1KiCD34Imatinib.fastq
Approx 15% complete for BM1KiCD34Imatinib.fastq
Approx 20% complete for BM1KiCD34Imatinib.fastq
Approx 25% complete for BM1KiCD34Imatinib.fastq
Approx 30% complete for BM1KiCD34Imatinib.fastq
Approx 35% complete for BM1KiCD34Imatinib.fastq
Approx 40% complete for BM1KiCD34Imatinib.fastq
Approx 45% complete for BM1KiCD34Imatinib.fastq
Approx 50% complete for BM1KiCD34Imatinib.fastq
Approx 55% complete for BM1KiCD34Imatinib.fastq
Approx 60% complete for BM1KiCD34Imatinib.fastq
Approx 65% complete for BM1KiCD34Imatinib.fastq
Approx 70% complete for BM1KiCD34Imatinib.fastq
Approx 75% complete for BM1KiCD34Imatinib.fastq
Approx 80% complete for BM1KiCD34Imatinib.fastq
Approx 85% complete for BM1KiCD34Imatinib.fastq
Approx 90% complete for BM1KiCD34Imatinib.fastq
Approx 95% complete for BM1KiCD34Imatinib.fastq
Analysis complete for BM1KiCD34Imatinib.fastq
Started analysis of BM9iCD34Imatinib.fastq
Approx 5% complete for BM9iCD34Imatinib.fastq
Approx 10% complete for BM9iCD34Imatinib.fastq
Approx 15% complete for BM9iCD34Imatinib.fastq
Approx 20% complete for BM9iCD34Imatinib.fastq
Approx 25% complete for BM9iCD34Imatinib.fastq
Approx 30% complete for BM9iCD34Imatinib.fastq
Approx 35% complete for BM9iCD34Imatinib.fastq
Approx 40% complete for BM9iCD34Imatinib.fastq
Approx 45% complete for BM9iCD34Imatinib.fastq
Approx 50% complete for BM9iCD34Imatinib.fastq
Approx 55% complete for BM9iCD34Imatinib.fastq
Approx 60% complete for BM9iCD34Imatinib.fastq
Approx 65% complete for BM9iCD34Imatinib.fastq
Approx 70% complete for BM9iCD34Imatinib.fastq
Approx 75% complete for BM9iCD34Imatinib.fastq
Approx 80% complete for BM9iCD34Imatinib.fastq
Approx 85% complete for BM9iCD34Imatinib.fastq
Approx 90% complete for BM9iCD34Imatinib.fastq
Approx 95% complete for BM9iCD34Imatinib.fastq
Analysis complete for BM9iCD34Imatinib.fastq
Started analysis of CML15iCD34Imatinib.fastq
Approx 5% complete for CML15iCD34Imatinib.fastq
Approx 10% complete for CML15iCD34Imatinib.fastq
Approx 15% complete for CML15iCD34Imatinib.fastq
Approx 20% complete for CML15iCD34Imatinib.fastq
Approx 25% complete for CML15iCD34Imatinib.fastq
Approx 30% complete for CML15iCD34Imatinib.fastq
Approx 35% complete for CML15iCD34Imatinib.fastq
Approx 40% complete for CML15iCD34Imatinib.fastq
Approx 45% complete for CML15iCD34Imatinib.fastq
Approx 50% complete for CML15iCD34Imatinib.fastq
Approx 55% complete for CML15iCD34Imatinib.fastq
Approx 60% complete for CML15iCD34Imatinib.fastq
Approx 65% complete for CML15iCD34Imatinib.fastq
Approx 70% complete for CML15iCD34Imatinib.fastq
Approx 75% complete for CML15iCD34Imatinib.fastq
Approx 80% complete for CML15iCD34Imatinib.fastq
Approx 85% complete for CML15iCD34Imatinib.fastq
Approx 90% complete for CML15iCD34Imatinib.fastq
Approx 95% complete for CML15iCD34Imatinib.fastq
Analysis complete for CML15iCD34Imatinib.fastq
Started analysis of CML17iCD34Imatinib.fastq
Approx 5% complete for CML17iCD34Imatinib.fastq
Approx 10% complete for CML17iCD34Imatinib.fastq
Approx 15% complete for CML17iCD34Imatinib.fastq
Approx 20% complete for CML17iCD34Imatinib.fastq
Approx 25% complete for CML17iCD34Imatinib.fastq
Approx 30% complete for CML17iCD34Imatinib.fastq
Approx 35% complete for CML17iCD34Imatinib.fastq
Approx 40% complete for CML17iCD34Imatinib.fastq
Approx 45% complete for CML17iCD34Imatinib.fastq
Approx 50% complete for CML17iCD34Imatinib.fastq
Approx 55% complete for CML17iCD34Imatinib.fastq
Approx 60% complete for CML17iCD34Imatinib.fastq
Approx 65% complete for CML17iCD34Imatinib.fastq
Approx 70% complete for CML17iCD34Imatinib.fastq
Approx 75% complete for CML17iCD34Imatinib.fastq
Approx 80% complete for CML17iCD34Imatinib.fastq
Approx 85% complete for CML17iCD34Imatinib.fastq
Approx 90% complete for CML17iCD34Imatinib.fastq
Approx 95% complete for CML17iCD34Imatinib.fastq
Analysis complete for CML17iCD34Imatinib.fastq
In [18]:
 
STAR --genomeDir /mnt/nfs/mfiers/STAR/hg19_star_db \
     --genomeLoad LoadAndKeep \
     --runThreadN 2 \
     --readFilesIn BM1KiCD34ctrl.fastq \
     --outFileNamePrefix BM1KiCD34ctrl.
STAR --genomeDir /mnt/nfs/mfiers/STAR/hg19_star_db \
     --genomeLoad LoadAndKeep \
     --runThreadN 2 \
     --readFilesIn BM9iCD34ctrl.fastq \
     --outFileNamePrefix BM9iCD34ctrl.
STAR --genomeDir /mnt/nfs/mfiers/STAR/hg19_star_db \
     --genomeLoad LoadAndKeep \
     --runThreadN 2 \
     --readFilesIn CML15iCD34ctrl.fastq \
     --outFileNamePrefix CML15iCD34ctrl.
STAR --genomeDir /mnt/nfs/mfiers/STAR/hg19_star_db \
     --genomeLoad LoadAndKeep \
     --runThreadN 2 \
     --readFilesIn CML17iCD34ctrl.fastq \
     --outFileNamePrefix CML17iCD34ctrl.
STAR --genomeDir /mnt/nfs/mfiers/STAR/hg19_star_db \
     --genomeLoad LoadAndKeep \
     --runThreadN 2 \
     --readFilesIn BM1KiCD34Imatinib.fastq \
     --outFileNamePrefix BM1KiCD34Imatinib.
STAR --genomeDir /mnt/nfs/mfiers/STAR/hg19_star_db \
     --genomeLoad LoadAndKeep \
     --runThreadN 2 \
     --readFilesIn BM9iCD34Imatinib.fastq \
     --outFileNamePrefix BM9iCD34Imatinib.
STAR --genomeDir /mnt/nfs/mfiers/STAR/hg19_star_db \
     --genomeLoad LoadAndKeep \
     --runThreadN 2 \
     --readFilesIn CML15iCD34Imatinib.fastq \
     --outFileNamePrefix CML15iCD34Imatinib.
STAR --genomeDir /mnt/nfs/mfiers/STAR/hg19_star_db \
     --genomeLoad LoadAndKeep \
     --runThreadN 2 \
     --readFilesIn CML17iCD34Imatinib.fastq \
     --outFileNamePrefix CML17iCD34Imatinib.
Dec 05 01:11:41 ..... started STAR run
Dec 05 01:11:43 ..... loading genome
Dec 05 01:11:43 ..... started mapping
Dec 05 01:20:32 ..... finished successfully
Dec 05 01:20:34 ..... started STAR run
Dec 05 01:20:36 ..... loading genome
Dec 05 01:20:36 ..... started mapping
Dec 05 01:30:22 ..... finished successfully
Dec 05 01:30:30 ..... started STAR run
Dec 05 01:30:30 ..... loading genome
Dec 05 01:30:30 ..... started mapping
Dec 05 01:36:36 ..... finished successfully
Dec 05 01:36:37 ..... started STAR run
Dec 05 01:36:38 ..... loading genome
Dec 05 01:36:38 ..... started mapping
Dec 05 01:46:37 ..... finished successfully
Dec 05 01:46:39 ..... started STAR run
Dec 05 01:46:39 ..... loading genome
Dec 05 01:46:39 ..... started mapping
Dec 05 01:58:11 ..... finished successfully
Dec 05 01:58:13 ..... started STAR run
Dec 05 01:58:13 ..... loading genome
Dec 05 01:58:13 ..... started mapping
Dec 05 02:09:33 ..... finished successfully
Dec 05 02:09:35 ..... started STAR run
Dec 05 02:09:35 ..... loading genome
Dec 05 02:09:35 ..... started mapping
Dec 05 02:17:49 ..... finished successfully
Dec 05 02:17:51 ..... started STAR run
Dec 05 02:17:51 ..... loading genome
Dec 05 02:17:51 ..... started mapping
Dec 05 02:26:15 ..... finished successfully
In [19]:
 
ls -l
total 128532772
-rw-r--r-- 1 r0301806 domain users     8893494 nov 21 16:02 all.counts
-rw-r--r-- 1 r0301806 domain users         581 nov 21 16:02 all.counts.summary
-rw-r--r-- 1 r0301806 domain users     8236287 nov 21 16:03 all.genedatapsoriasis.tsv
-rw-r--r-- 1 r0301806 domain users     1042835 nov 21 16:03 all.genepsoriasis.counts.tsv
-rw-r--r-- 1 r0301806 domain users  8377020745 dec  5 01:20 BM1KiCD34ctrl.Aligned.out.sam
lrwxrwxrwx 1 r0301806 domain users          42 dec  4 22:00 BM1KiCD34ctrl.fastq -> /mnt/nfs/r0301806/work/BM1KiCD34ctrl.fastq
-rw-r--r-- 1 r0301806 domain users      368099 dec  4 22:30 BM1KiCD34ctrl_fastqc.html
-rw-r--r-- 1 r0301806 domain users      465337 dec  4 22:30 BM1KiCD34ctrl_fastqc.zip
-rw-r--r-- 1 r0301806 domain users        1860 dec  5 01:20 BM1KiCD34ctrl.Log.final.out
-rw-r--r-- 1 r0301806 domain users       15617 dec  5 01:20 BM1KiCD34ctrl.Log.out
-rw-r--r-- 1 r0301806 domain users        1190 dec  5 01:20 BM1KiCD34ctrl.Log.progress.out
-rw-r--r-- 1 r0301806 domain users     7070891 dec  5 01:20 BM1KiCD34ctrl.SJ.out.tab
-rw-r--r-- 1 r0301806 domain users 10687129697 dec  5 01:58 BM1KiCD34Imatinib.Aligned.out.sam
lrwxrwxrwx 1 r0301806 domain users          46 dec  4 22:00 BM1KiCD34Imatinib.fastq -> /mnt/nfs/r0301806/work/BM1KiCD34Imatinib.fastq
-rw-r--r-- 1 r0301806 domain users      378459 dec  4 22:44 BM1KiCD34Imatinib_fastqc.html
-rw-r--r-- 1 r0301806 domain users      481856 dec  4 22:44 BM1KiCD34Imatinib_fastqc.zip
-rw-r--r-- 1 r0301806 domain users        1865 dec  5 01:58 BM1KiCD34Imatinib.Log.final.out
-rw-r--r-- 1 r0301806 domain users       15661 dec  5 01:58 BM1KiCD34Imatinib.Log.out
-rw-r--r-- 1 r0301806 domain users        1544 dec  5 01:58 BM1KiCD34Imatinib.Log.progress.out
-rw-r--r-- 1 r0301806 domain users     7944769 dec  5 01:58 BM1KiCD34Imatinib.SJ.out.tab
-rw-r--r-- 1 r0301806 domain users  9607237505 dec  5 01:30 BM9iCD34ctrl.Aligned.out.sam
lrwxrwxrwx 1 r0301806 domain users          41 dec  4 22:00 BM9iCD34ctrl.fastq -> /mnt/nfs/r0301806/work/BM9iCD34ctrl.fastq
-rw-r--r-- 1 r0301806 domain users      377620 dec  4 22:34 BM9iCD34ctrl_fastqc.html
-rw-r--r-- 1 r0301806 domain users      480229 dec  4 22:34 BM9iCD34ctrl_fastqc.zip
-rw-r--r-- 1 r0301806 domain users        1861 dec  5 01:30 BM9iCD34ctrl.Log.final.out
-rw-r--r-- 1 r0301806 domain users       15606 dec  5 01:30 BM9iCD34ctrl.Log.out
-rw-r--r-- 1 r0301806 domain users        1308 dec  5 01:30 BM9iCD34ctrl.Log.progress.out
-rw-r--r-- 1 r0301806 domain users     7285756 dec  5 01:30 BM9iCD34ctrl.SJ.out.tab
-rw-r--r-- 1 r0301806 domain users 10551475129 dec  5 02:09 BM9iCD34Imatinib.Aligned.out.sam
lrwxrwxrwx 1 r0301806 domain users          45 dec  4 22:00 BM9iCD34Imatinib.fastq -> /mnt/nfs/r0301806/work/BM9iCD34Imatinib.fastq
-rw-r--r-- 1 r0301806 domain users      371200 dec  4 22:48 BM9iCD34Imatinib_fastqc.html
-rw-r--r-- 1 r0301806 domain users      472125 dec  4 22:48 BM9iCD34Imatinib_fastqc.zip
-rw-r--r-- 1 r0301806 domain users        1865 dec  5 02:09 BM9iCD34Imatinib.Log.final.out
-rw-r--r-- 1 r0301806 domain users       15650 dec  5 02:09 BM9iCD34Imatinib.Log.out
-rw-r--r-- 1 r0301806 domain users        1544 dec  5 02:09 BM9iCD34Imatinib.Log.progress.out
-rw-r--r-- 1 r0301806 domain users     7916917 dec  5 02:09 BM9iCD34Imatinib.SJ.out.tab
-rw-r--r-- 1 r0301806 domain users  7937668022 dec  5 01:36 CML15iCD34ctrl.Aligned.out.sam
lrwxrwxrwx 1 r0301806 domain users          43 dec  4 22:00 CML15iCD34ctrl.fastq -> /mnt/nfs/r0301806/work/CML15iCD34ctrl.fastq
-rw-r--r-- 1 r0301806 domain users      347429 dec  4 22:36 CML15iCD34ctrl_fastqc.html
-rw-r--r-- 1 r0301806 domain users      464894 dec  4 22:36 CML15iCD34ctrl_fastqc.zip
-rw-r--r-- 1 r0301806 domain users        1862 dec  5 01:36 CML15iCD34ctrl.Log.final.out
-rw-r--r-- 1 r0301806 domain users       15628 dec  5 01:36 CML15iCD34ctrl.Log.out
-rw-r--r-- 1 r0301806 domain users         954 dec  5 01:36 CML15iCD34ctrl.Log.progress.out
-rw-r--r-- 1 r0301806 domain users     6368408 dec  5 01:36 CML15iCD34ctrl.SJ.out.tab
-rw-r--r-- 1 r0301806 domain users 10396446591 dec  5 02:17 CML15iCD34Imatinib.Aligned.out.sam
lrwxrwxrwx 1 r0301806 domain users          47 dec  4 22:00 CML15iCD34Imatinib.fastq -> /mnt/nfs/r0301806/work/CML15iCD34Imatinib.fastq
-rw-r--r-- 1 r0301806 domain users      354469 dec  4 22:51 CML15iCD34Imatinib_fastqc.html
-rw-r--r-- 1 r0301806 domain users      476716 dec  4 22:51 CML15iCD34Imatinib_fastqc.zip
-rw-r--r-- 1 r0301806 domain users        1862 dec  5 02:17 CML15iCD34Imatinib.Log.final.out
-rw-r--r-- 1 r0301806 domain users       15672 dec  5 02:17 CML15iCD34Imatinib.Log.out
-rw-r--r-- 1 r0301806 domain users        1190 dec  5 02:17 CML15iCD34Imatinib.Log.progress.out
-rw-r--r-- 1 r0301806 domain users     6745982 dec  5 02:17 CML15iCD34Imatinib.SJ.out.tab
-rw-r--r-- 1 r0301806 domain users 11890085438 dec  5 01:46 CML17iCD34ctrl.Aligned.out.sam
lrwxrwxrwx 1 r0301806 domain users          43 dec  4 22:00 CML17iCD34ctrl.fastq -> /mnt/nfs/r0301806/work/CML17iCD34ctrl.fastq
-rw-r--r-- 1 r0301806 domain users      353308 dec  4 22:40 CML17iCD34ctrl_fastqc.html
-rw-r--r-- 1 r0301806 domain users      474168 dec  4 22:40 CML17iCD34ctrl_fastqc.zip
-rw-r--r-- 1 r0301806 domain users        1862 dec  5 01:46 CML17iCD34ctrl.Log.final.out
-rw-r--r-- 1 r0301806 domain users       15628 dec  5 01:46 CML17iCD34ctrl.Log.out
-rw-r--r-- 1 r0301806 domain users        1308 dec  5 01:46 CML17iCD34ctrl.Log.progress.out
-rw-r--r-- 1 r0301806 domain users     7040471 dec  5 01:46 CML17iCD34ctrl.SJ.out.tab
-rw-r--r-- 1 r0301806 domain users 10114207357 dec  5 02:26 CML17iCD34Imatinib.Aligned.out.sam
lrwxrwxrwx 1 r0301806 domain users          47 dec  4 22:00 CML17iCD34Imatinib.fastq -> /mnt/nfs/r0301806/work/CML17iCD34Imatinib.fastq
-rw-r--r-- 1 r0301806 domain users      374390 dec  4 22:54 CML17iCD34Imatinib_fastqc.html
-rw-r--r-- 1 r0301806 domain users      506195 dec  4 22:54 CML17iCD34Imatinib_fastqc.zip
-rw-r--r-- 1 r0301806 domain users        1862 dec  5 02:26 CML17iCD34Imatinib.Log.final.out
-rw-r--r-- 1 r0301806 domain users       15672 dec  5 02:26 CML17iCD34Imatinib.Log.out
-rw-r--r-- 1 r0301806 domain users        1190 dec  5 02:26 CML17iCD34Imatinib.Log.progress.out
-rw-r--r-- 1 r0301806 domain users     6711559 dec  5 02:26 CML17iCD34Imatinib.SJ.out.tab
-rw-r--r-- 1 r0301806 domain users     3650241 nov 23 14:32 deseq.results.tsv
lrwxrwxrwx 1 r0301806 domain users          30 dec  4 21:58 *.fastq -> /mnt/nfs/r0304814/work/*.fastq
lrwxrwxrwx 1 r0301806 domain users          56 nov 21 15:48 gencode.v19.nopseudo.plus.sort.gtf -> /mnt/nfs/data/RNA-seq/gencode.v19.nopseudo.plus.sort.gtf
-rw-r--r-- 1 r0301806 domain users  6454489687 nov 21 01:56 LS252.Aligned.out.sam
-rw-r--r-- 1 r0301806 domain users  1789388164 nov 21 12:30 LS252.bam
-rw-r--r-- 1 r0301806 domain users     3400288 nov 21 14:11 LS252.bam.bai
-rw-r--r-- 1 r0301806 domain users     8344733 nov 21 15:53 LS252.counts
-rw-r--r-- 1 r0301806 domain users         296 nov 21 15:53 LS252.counts.summary
lrwxrwxrwx 1 r0301806 domain users          34 dec  4 22:00 LS252.fastq -> /mnt/nfs/r0301806/work/LS252.fastq
-rw-r--r-- 1 r0301806 domain users      360945 nov 21 00:07 LS252_fastqc.html
-rw-r--r-- 1 r0301806 domain users      488111 nov 21 00:07 LS252_fastqc.zip
-rw-r--r-- 1 r0301806 domain users        1861 nov 21 01:56 LS252.Log.final.out
-rw-r--r-- 1 r0301806 domain users       15529 nov 21 01:56 LS252.Log.out
-rw-r--r-- 1 r0301806 domain users        1662 nov 21 01:56 LS252.Log.progress.out
-rw-r--r-- 1 r0301806 domain users     4764141 nov 21 01:56 LS252.SJ.out.tab
-rw-r--r-- 1 r0301806 domain users  7415056438 nov 21 02:08 LS287.Aligned.out.sam
-rw-r--r-- 1 r0301806 domain users  1664684723 nov 21 14:23 LS287.bam
-rw-r--r-- 1 r0301806 domain users     3314240 nov 21 14:30 LS287.bam.bai
-rw-r--r-- 1 r0301806 domain users     8347231 nov 21 15:54 LS287.counts
-rw-r--r-- 1 r0301806 domain users         296 nov 21 15:54 LS287.counts.summary
lrwxrwxrwx 1 r0301806 domain users          34 dec  4 22:00 LS287.fastq -> /mnt/nfs/r0301806/work/LS287.fastq
-rw-r--r-- 1 r0301806 domain users      347480 nov 21 00:16 LS287_fastqc.html
-rw-r--r-- 1 r0301806 domain users      398871 nov 21 00:16 LS287_fastqc.zip
-rw-r--r-- 1 r0301806 domain users        1862 nov 21 02:08 LS287.Log.final.out
-rw-r--r-- 1 r0301806 domain users       15529 nov 21 02:08 LS287.Log.out
-rw-r--r-- 1 r0301806 domain users        1544 nov 21 02:08 LS287.Log.progress.out
-rw-r--r-- 1 r0301806 domain users     5397055 nov 21 02:08 LS287.SJ.out.tab
-rw-r--r-- 1 r0301806 domain users  7007092341 nov 21 02:29 LS292.Aligned.out.sam
-rw-r--r-- 1 r0301806 domain users  1533098382 nov 21 14:45 LS292.bam
-rw-r--r-- 1 r0301806 domain users     3333560 nov 21 14:50 LS292.bam.bai
-rw-r--r-- 1 r0301806 domain users     8345888 nov 21 15:54 LS292.counts
-rw-r--r-- 1 r0301806 domain users         296 nov 21 15:54 LS292.counts.summary
lrwxrwxrwx 1 r0301806 domain users          34 dec  4 22:00 LS292.fastq -> /mnt/nfs/r0301806/work/LS292.fastq
-rw-r--r-- 1 r0301806 domain users      352315 nov 21 00:26 LS292_fastqc.html
-rw-r--r-- 1 r0301806 domain users      407732 nov 21 00:26 LS292_fastqc.zip
-rw-r--r-- 1 r0301806 domain users        1862 nov 21 02:29 LS292.Log.final.out
-rw-r--r-- 1 r0301806 domain users       15529 nov 21 02:29 LS292.Log.out
-rw-r--r-- 1 r0301806 domain users        1544 nov 21 02:29 LS292.Log.progress.out
-rw-r--r-- 1 r0301806 domain users     5091426 nov 21 02:29 LS292.SJ.out.tab
-rw-r--r-- 1 r0301806 domain users  7350612418 nov 21 02:45 NL251.Aligned.out.sam
-rw-r--r-- 1 r0301806 domain users  1632509502 nov 21 14:59 NL251.bam
-rw-r--r-- 1 r0301806 domain users     3291184 nov 21 15:01 NL251.bam.bai
-rw-r--r-- 1 r0301806 domain users     8345311 nov 21 15:55 NL251.counts
-rw-r--r-- 1 r0301806 domain users         296 nov 21 15:55 NL251.counts.summary
lrwxrwxrwx 1 r0301806 domain users          34 dec  4 22:00 NL251.fastq -> /mnt/nfs/r0301806/work/NL251.fastq
-rw-r--r-- 1 r0301806 domain users      366906 nov 21 00:55 NL251_fastqc.html
-rw-r--r-- 1 r0301806 domain users      425938 nov 21 00:55 NL251_fastqc.zip
-rw-r--r-- 1 r0301806 domain users        1862 nov 21 02:45 NL251.Log.final.out
-rw-r--r-- 1 r0301806 domain users       15529 nov 21 02:45 NL251.Log.out
-rw-r--r-- 1 r0301806 domain users        1662 nov 21 02:45 NL251.Log.progress.out
-rw-r--r-- 1 r0301806 domain users     4902687 nov 21 02:45 NL251.SJ.out.tab
-rw-r--r-- 1 r0301806 domain users           0 nov 21 02:51 NL286.Aligned.out.sam
-rw-r--r-- 1 r0301806 domain users  1541773300 nov 21 15:21 NL286.bam
-rw-r--r-- 1 r0301806 domain users     3387208 nov 21 15:22 NL286.bam.bai
-rw-r--r-- 1 r0301806 domain users     8345371 nov 21 15:56 NL286.counts
-rw-r--r-- 1 r0301806 domain users         296 nov 21 15:56 NL286.counts.summary
-rw-r--r-- 1 r0301806 domain users       13128 nov 21 02:51 NL286.Log.out
-rw-r--r-- 1 r0301806 domain users           0 nov 21 02:51 NL286.Log.progress.out
drwx------ 2 r0301806 domain users        4096 nov 21 02:51 NL286._STARtmp
-rw-r--r-- 1 r0301806 domain users  7218709786 nov 21 03:04 NL287.Aligned.out.sam
lrwxrwxrwx 1 r0301806 domain users          34 dec  4 22:00 NL287.fastq -> /mnt/nfs/r0301806/work/NL287.fastq
-rw-r--r-- 1 r0301806 domain users      343862 nov 21 01:11 NL287_fastqc.html
-rw-r--r-- 1 r0301806 domain users      397127 nov 21 01:11 NL287_fastqc.zip
-rw-r--r-- 1 r0301806 domain users        1862 nov 21 03:04 NL287.Log.final.out
-rw-r--r-- 1 r0301806 domain users       15529 nov 21 03:04 NL287.Log.out
-rw-r--r-- 1 r0301806 domain users        1662 nov 21 03:04 NL287.Log.progress.out
-rw-r--r-- 1 r0301806 domain users     4939340 nov 21 03:04 NL287.SJ.out.tab
-rw-r--r-- 1 r0301806 domain users  1456424671 nov 21 15:30 NL291.bam
-rw-r--r-- 1 r0301806 domain users     3334656 nov 21 15:31 NL291.bam.bai
-rw-r--r-- 1 r0301806 domain users     8345915 nov 21 15:56 NL291.counts
-rw-r--r-- 1 r0301806 domain users         296 nov 21 15:56 NL291.counts.summary
-rw-r--r-- 1 r0301806 domain users  6801108258 nov 21 03:21 NL292.Aligned.out.sam
lrwxrwxrwx 1 r0301806 domain users          34 dec  4 22:00 NL292.fastq -> /mnt/nfs/r0301806/work/NL292.fastq
-rw-r--r-- 1 r0301806 domain users      368992 nov 21 01:28 NL292_fastqc.html
-rw-r--r-- 1 r0301806 domain users      434603 nov 21 01:28 NL292_fastqc.zip
-rw-r--r-- 1 r0301806 domain users        1862 nov 21 03:21 NL292.Log.final.out
-rw-r--r-- 1 r0301806 domain users       15529 nov 21 03:21 NL292.Log.out
-rw-r--r-- 1 r0301806 domain users        1544 nov 21 03:21 NL292.Log.progress.out
-rw-r--r-- 1 r0301806 domain users     5139326 nov 21 03:21 NL292.SJ.out.tab
In [21]:
 
# SAM file structure:
# A SAM file is a text file containing the alignment of all reads. 
# SAM files start with a header:(Please do not use `cat` as this will crash your notebook!!)
head -40 BM1KiCD34Imatinib.Aligned.out.sam | grep -v '^@'
SRR1536065.1	16	chr2	191878752	255	73M	*	0	0	CAGGATCCGGAAGGGCTAGGCGGGGGCGCGGCGGTGCAGCCTCTCCCGAGCGCGCTGGGTCGCCTCTGCTCGG	@CC>55-5939CA9>3<6:1BCCBBB@8==89(CCBBCBBB<EBEGGB@EGHGCFGGDHGHFHAFDFAFD@@@	NH:i:1	HI:i:1	AS:i:71	nM:i:0
SRR1536065.2	0	chr18	33619185	255	73M	*	0	0	CTGTAAGTTTCCTGAGGCCTCCCCAGCAATGCAGAACTGTGAGTCAATTAAATTTCTTTTCTTCAAAAATTAC	CCCFFFFDHHHHHJJJJJJJJJJJIJJJJJJJGGJJJJJHIIJGIIIJJJJJJJJJJJJJJIJIGIJIJJJIG	NH:i:1	HI:i:1	AS:i:71	nM:i:0
SRR1536065.3	0	chrX	109419058	255	73M	*	0	0	CTCTTATCTTGGGCCAAGCCAACGTGGAGAGAAGCAACCCAACCAGACTCTTGGCAGCCTGCCTTACAGGGTA	BCCFFFFFHGHHHJJJJJJJIJJJFHHFIIIIIGIIEIIIJJIIJIJJJJJIJJJEIJHHHHFFFFFFECCAC	NH:i:1	HI:i:1	AS:i:71	nM:i:0
SRR1536065.4	0	chr7	938258	255	1S72M	*	0	0	CCGGGAGCCAGACTGGGCCCTGGAGGAAAGGGGGCCCCGGGTCAGGGAGGGGCAGGTTGGCTGGGTGTGGTCA	@C@FFFDFFFHHHFFFEGIEHII?FHAHIHGGEEHGIHGHF5=CACB?@?@?@5<8<C<BCABDD355<<3>>	NH:i:1	HI:i:1	AS:i:70	nM:i:0
SRR1536065.6	16	chr22	30736758	255	44M879N29M	*	0	0	GGGGGTGGGGGCACTTTCTGCCCTTCTTCTTCATCATCTGAACCCTCATCCATATCTTGTACTTGGGTGTCCT	DCDBDAHEJIHF@JJIJIHDGHHJIGJHFHHDDJJJIHHG?FJJJJJIJJIGJJJJJIHGFHHHHFDFFFCC@	NH:i:1	HI:i:1	AS:i:73	nM:i:0
SRR1536065.7	0	chr5	81572333	255	5M1174N68M	*	0	0	CTCCTACTTTTTCCAGCACGATTCCTTTTGCATGAGAAGCACCTCCAAAAGGGTTGGCCTTTAGGGCTGTGCC	CCCFFFFFHHHHHJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJIJJJIJJJJJJJJJJJJHHHFFFF	NH:i:1	HI:i:1	AS:i:72	nM:i:0
SRR1536065.8	0	chr1	224621800	255	73M	*	0	0	GCCTGCATGATGCTGCCGCTGACCAGGCTGTGGCCGCTACTTCGGTGGGGGACAGCAGCGGCGGCGGGAGGGG	@CCFFFF:DHHHHJJJJJJJJJJJJJJJJJJJJIIHIIJJHIJJJ;FHHHFCDDDDDDDDDDDDDDDD7@BDD	NH:i:1	HI:i:1	AS:i:71	nM:i:0
SRR1536065.9	16	chr22	38203034	255	73M	*	0	0	TGGTTTGGTGGGGCTGCGGCCACTTAAAACCTCCCGATCTCTTTTTGAGTCCTTTATTATAAGTAGTTGTAGC	ABBADDDDDDAFFHHIIHFC@EIGIHFB7IIGAIGHGGIIHCGIJJJIGJJIJGGIJIHHFFHHDFDFFF@@@	NH:i:1	HI:i:1	AS:i:71	nM:i:0
SRR1536065.10	0	chr20	1903207	3	73M	*	0	0	CATGACGGGCAGCCAGCGGTCAGCAAAAGCCATGACCTGAAGGTCTCAGCCCACCCGAAGGAGCAGGGCTCAA	@CCFFFFFGHHHHJGIIIJCDGHGIIJIIIIJIGIJJJIIJJJCHGIGIGJCEFHFFFDDDBDBDDBDDBDDD	NH:i:2	HI:i:1	AS:i:71	nM:i:0
SRR1536065.10	272	chr20	1584468	3	73M	*	0	0	TTGAGCCCTGCTCCTTCGGGTGGGCTGAGACCTTCAGGTCATGGCTTTTGCTGACCGCTGGCTGCCCGTCATG	DDDBDDBDDBDBDDDFFFHFECJGIGIGHCJJJIIJJJIGIJIIIIJIIGHGDCJIIIGJHHHHGFFFFFCC@	NH:i:2	HI:i:2	AS:i:71	nM:i:0
SRR1536065.11	16	chr2	242062181	255	73M	*	0	0	ACGAAGCCGAAGGCCCCACTGCCCAGCGGGCTCATGGTACTGTACTTTTGGGAGTACTCGCCCTCACAGGCCG	CDDDDDDDDDDDDDFFFFHHHHJJJJJJJJJIGJJIIIIIJIIGJJJJJJJJJIHHJJJJHHHHHFFFFFCCC	NH:i:1	HI:i:1	AS:i:71	nM:i:0
SRR1536065.12	16	chr9	128003503	255	73M	*	0	0	TCACAAGGCGCCACGAACCAGGCGAAGGGCAGGTCTAGAAATACAGGCCGCGGCGCTTCCCTCTCACACTCGC	DDDDDDDDDDDDDDDDDDDDDDDEEFFFFHHHHHHIJJJJIJIIJJJJJJJJJJJJJJJJHHHHHDDDFFCCB	NH:i:1	HI:i:1	AS:i:71	nM:i:0
In [22]:
 
# SAM files are unsorted and uncompressed. To solve this, we will sort the SAM files and convert them to a BAM file.
# This BAM file is a smaller / more compressed version of the SAM file.
# Afterwards we will create an index for quick access. We will use samtools to do this. 
# In the first step we will sort and output BAM files: 
samtools sort -o BM1KiCD34ctrl.bam BM1KiCD34ctrl.Aligned.out.sam
samtools index BM1KiCD34ctrl.bam
samtools sort -o BM9iCD34ctrl.bam BM9iCD34ctrl.Aligned.out.sam
samtools index BM9iCD34ctrl.bam
samtools sort -o CML15iCD34ctrl.bam CML15iCD34ctrl.Aligned.out.sam
samtools index CML15iCD34ctrl.bam
samtools sort -o CML17iCD34ctrl.bam CML17iCD34ctrl.Aligned.out.sam
samtools index CML17iCD34ctrl.bam
samtools sort -o BM1KiCD34Imatinib.bam BM1KiCD34Imatinib.Aligned.out.sam
samtools index BM1KiCD34Imatinib.bam
samtools sort -o BM9iCD34Imatinib.bam BM9iCD34Imatinib.Aligned.out.sam
samtools index BM9iCD34Imatinib.bam
samtools sort -o CML15iCD34Imatinib.bam CML15iCD34Imatinib.Aligned.out.sam
samtools index CML15iCD34Imatinib.bam
samtools sort -o CML17iCD34Imatinib.bam CML17iCD34Imatinib.Aligned.out.sam
samtools index CML17iCD34Imatinib.bam
[bam_sort_core] merging from 15 files...
[bam_sort_core] merging from 18 files...
[bam_sort_core] merging from 13 files...
[bam_sort_core] merging from 22 files...
[bam_sort_core] merging from 19 files...
[bam_sort_core] merging from 19 files...
[bam_sort_core] merging from 19 files...
[bam_sort_core] merging from 18 files...
In [23]:
 
ls -l
total 90730780
-rw-r--r-- 1 r0301806 domain users  8377020745 dec  5 01:20 BM1KiCD34ctrl.Aligned.out.sam
-rw-r--r-- 1 r0301806 domain users  1351412315 dec  5 17:34 BM1KiCD34ctrl.bam
-rw-r--r-- 1 r0301806 domain users     3133208 dec  5 17:35 BM1KiCD34ctrl.bam.bai
lrwxrwxrwx 1 r0301806 domain users          42 dec  4 22:00 BM1KiCD34ctrl.fastq -> /mnt/nfs/r0301806/work/BM1KiCD34ctrl.fastq
-rw-r--r-- 1 r0301806 domain users      368099 dec  4 22:30 BM1KiCD34ctrl_fastqc.html
-rw-r--r-- 1 r0301806 domain users      465337 dec  4 22:30 BM1KiCD34ctrl_fastqc.zip
-rw-r--r-- 1 r0301806 domain users        1860 dec  5 01:20 BM1KiCD34ctrl.Log.final.out
-rw-r--r-- 1 r0301806 domain users       15617 dec  5 01:20 BM1KiCD34ctrl.Log.out
-rw-r--r-- 1 r0301806 domain users        1190 dec  5 01:20 BM1KiCD34ctrl.Log.progress.out
-rw-r--r-- 1 r0301806 domain users     7070891 dec  5 01:20 BM1KiCD34ctrl.SJ.out.tab
-rw-r--r-- 1 r0301806 domain users 10687129697 dec  5 01:58 BM1KiCD34Imatinib.Aligned.out.sam
-rw-r--r-- 1 r0301806 domain users  1794427349 dec  5 18:14 BM1KiCD34Imatinib.bam
-rw-r--r-- 1 r0301806 domain users     3148552 dec  5 18:14 BM1KiCD34Imatinib.bam.bai
lrwxrwxrwx 1 r0301806 domain users          46 dec  4 22:00 BM1KiCD34Imatinib.fastq -> /mnt/nfs/r0301806/work/BM1KiCD34Imatinib.fastq
-rw-r--r-- 1 r0301806 domain users      378459 dec  4 22:44 BM1KiCD34Imatinib_fastqc.html
-rw-r--r-- 1 r0301806 domain users      481856 dec  4 22:44 BM1KiCD34Imatinib_fastqc.zip
-rw-r--r-- 1 r0301806 domain users        1865 dec  5 01:58 BM1KiCD34Imatinib.Log.final.out
-rw-r--r-- 1 r0301806 domain users       15661 dec  5 01:58 BM1KiCD34Imatinib.Log.out
-rw-r--r-- 1 r0301806 domain users        1544 dec  5 01:58 BM1KiCD34Imatinib.Log.progress.out
-rw-r--r-- 1 r0301806 domain users     7944769 dec  5 01:58 BM1KiCD34Imatinib.SJ.out.tab
-rw-r--r-- 1 r0301806 domain users  9607237505 dec  5 01:30 BM9iCD34ctrl.Aligned.out.sam
-rw-r--r-- 1 r0301806 domain users  1605362021 dec  5 17:44 BM9iCD34ctrl.bam
-rw-r--r-- 1 r0301806 domain users     3030368 dec  5 17:44 BM9iCD34ctrl.bam.bai
lrwxrwxrwx 1 r0301806 domain users          41 dec  4 22:00 BM9iCD34ctrl.fastq -> /mnt/nfs/r0301806/work/BM9iCD34ctrl.fastq
-rw-r--r-- 1 r0301806 domain users      377620 dec  4 22:34 BM9iCD34ctrl_fastqc.html
-rw-r--r-- 1 r0301806 domain users      480229 dec  4 22:34 BM9iCD34ctrl_fastqc.zip
-rw-r--r-- 1 r0301806 domain users        1861 dec  5 01:30 BM9iCD34ctrl.Log.final.out
-rw-r--r-- 1 r0301806 domain users       15606 dec  5 01:30 BM9iCD34ctrl.Log.out
-rw-r--r-- 1 r0301806 domain users        1308 dec  5 01:30 BM9iCD34ctrl.Log.progress.out
-rw-r--r-- 1 r0301806 domain users     7285756 dec  5 01:30 BM9iCD34ctrl.SJ.out.tab
-rw-r--r-- 1 r0301806 domain users 10551475129 dec  5 02:09 BM9iCD34Imatinib.Aligned.out.sam
-rw-r--r-- 1 r0301806 domain users  1756297414 dec  5 18:25 BM9iCD34Imatinib.bam
-rw-r--r-- 1 r0301806 domain users     3015256 dec  5 18:26 BM9iCD34Imatinib.bam.bai
lrwxrwxrwx 1 r0301806 domain users          45 dec  4 22:00 BM9iCD34Imatinib.fastq -> /mnt/nfs/r0301806/work/BM9iCD34Imatinib.fastq
-rw-r--r-- 1 r0301806 domain users      371200 dec  4 22:48 BM9iCD34Imatinib_fastqc.html
-rw-r--r-- 1 r0301806 domain users      472125 dec  4 22:48 BM9iCD34Imatinib_fastqc.zip
-rw-r--r-- 1 r0301806 domain users        1865 dec  5 02:09 BM9iCD34Imatinib.Log.final.out
-rw-r--r-- 1 r0301806 domain users       15650 dec  5 02:09 BM9iCD34Imatinib.Log.out
-rw-r--r-- 1 r0301806 domain users        1544 dec  5 02:09 BM9iCD34Imatinib.Log.progress.out
-rw-r--r-- 1 r0301806 domain users     7916917 dec  5 02:09 BM9iCD34Imatinib.SJ.out.tab
-rw-r--r-- 1 r0301806 domain users  7937668022 dec  5 01:36 CML15iCD34ctrl.Aligned.out.sam
-rw-r--r-- 1 r0301806 domain users  1353637052 dec  5 17:52 CML15iCD34ctrl.bam
-rw-r--r-- 1 r0301806 domain users     3491712 dec  5 17:52 CML15iCD34ctrl.bam.bai
lrwxrwxrwx 1 r0301806 domain users          43 dec  4 22:00 CML15iCD34ctrl.fastq -> /mnt/nfs/r0301806/work/CML15iCD34ctrl.fastq
-rw-r--r-- 1 r0301806 domain users      347429 dec  4 22:36 CML15iCD34ctrl_fastqc.html
-rw-r--r-- 1 r0301806 domain users      464894 dec  4 22:36 CML15iCD34ctrl_fastqc.zip
-rw-r--r-- 1 r0301806 domain users        1862 dec  5 01:36 CML15iCD34ctrl.Log.final.out
-rw-r--r-- 1 r0301806 domain users       15628 dec  5 01:36 CML15iCD34ctrl.Log.out
-rw-r--r-- 1 r0301806 domain users         954 dec  5 01:36 CML15iCD34ctrl.Log.progress.out
-rw-r--r-- 1 r0301806 domain users     6368408 dec  5 01:36 CML15iCD34ctrl.SJ.out.tab
-rw-r--r-- 1 r0301806 domain users 10396446591 dec  5 02:17 CML15iCD34Imatinib.Aligned.out.sam
-rw-r--r-- 1 r0301806 domain users  1752153628 dec  5 18:37 CML15iCD34Imatinib.bam
-rw-r--r-- 1 r0301806 domain users     3628768 dec  5 18:37 CML15iCD34Imatinib.bam.bai
lrwxrwxrwx 1 r0301806 domain users          47 dec  4 22:00 CML15iCD34Imatinib.fastq -> /mnt/nfs/r0301806/work/CML15iCD34Imatinib.fastq
-rw-r--r-- 1 r0301806 domain users      354469 dec  4 22:51 CML15iCD34Imatinib_fastqc.html
-rw-r--r-- 1 r0301806 domain users      476716 dec  4 22:51 CML15iCD34Imatinib_fastqc.zip
-rw-r--r-- 1 r0301806 domain users        1862 dec  5 02:17 CML15iCD34Imatinib.Log.final.out
-rw-r--r-- 1 r0301806 domain users       15672 dec  5 02:17 CML15iCD34Imatinib.Log.out
-rw-r--r-- 1 r0301806 domain users        1190 dec  5 02:17 CML15iCD34Imatinib.Log.progress.out
-rw-r--r-- 1 r0301806 domain users     6745982 dec  5 02:17 CML15iCD34Imatinib.SJ.out.tab
-rw-r--r-- 1 r0301806 domain users 11890085438 dec  5 01:46 CML17iCD34ctrl.Aligned.out.sam
-rw-r--r-- 1 r0301806 domain users  1954045833 dec  5 18:03 CML17iCD34ctrl.bam
-rw-r--r-- 1 r0301806 domain users     3693024 dec  5 18:04 CML17iCD34ctrl.bam.bai
lrwxrwxrwx 1 r0301806 domain users          43 dec  4 22:00 CML17iCD34ctrl.fastq -> /mnt/nfs/r0301806/work/CML17iCD34ctrl.fastq
-rw-r--r-- 1 r0301806 domain users      353308 dec  4 22:40 CML17iCD34ctrl_fastqc.html
-rw-r--r-- 1 r0301806 domain users      474168 dec  4 22:40 CML17iCD34ctrl_fastqc.zip
-rw-r--r-- 1 r0301806 domain users        1862 dec  5 01:46 CML17iCD34ctrl.Log.final.out
-rw-r--r-- 1 r0301806 domain users       15628 dec  5 01:46 CML17iCD34ctrl.Log.out
-rw-r--r-- 1 r0301806 domain users        1308 dec  5 01:46 CML17iCD34ctrl.Log.progress.out
-rw-r--r-- 1 r0301806 domain users     7040471 dec  5 01:46 CML17iCD34ctrl.SJ.out.tab
-rw-r--r-- 1 r0301806 domain users 10114207357 dec  5 02:26 CML17iCD34Imatinib.Aligned.out.sam
-rw-r--r-- 1 r0301806 domain users  1688825705 dec  5 18:48 CML17iCD34Imatinib.bam
-rw-r--r-- 1 r0301806 domain users     3572904 dec  5 18:49 CML17iCD34Imatinib.bam.bai
lrwxrwxrwx 1 r0301806 domain users          47 dec  4 22:00 CML17iCD34Imatinib.fastq -> /mnt/nfs/r0301806/work/CML17iCD34Imatinib.fastq
-rw-r--r-- 1 r0301806 domain users      374390 dec  4 22:54 CML17iCD34Imatinib_fastqc.html
-rw-r--r-- 1 r0301806 domain users      506195 dec  4 22:54 CML17iCD34Imatinib_fastqc.zip
-rw-r--r-- 1 r0301806 domain users        1862 dec  5 02:26 CML17iCD34Imatinib.Log.final.out
-rw-r--r-- 1 r0301806 domain users       15672 dec  5 02:26 CML17iCD34Imatinib.Log.out
-rw-r--r-- 1 r0301806 domain users        1190 dec  5 02:26 CML17iCD34Imatinib.Log.progress.out
-rw-r--r-- 1 r0301806 domain users     6711559 dec  5 02:26 CML17iCD34Imatinib.SJ.out.tab
lrwxrwxrwx 1 r0301806 domain users          30 dec  4 21:58 *.fastq -> /mnt/nfs/r0304814/work/*.fastq
lrwxrwxrwx 1 r0301806 domain users          56 nov 21 15:48 gencode.v19.nopseudo.plus.sort.gtf -> /mnt/nfs/data/RNA-seq/gencode.v19.nopseudo.plus.sort.gtf
drwx------ 2 r0301806 domain users        4096 nov 21 02:51 NL286._STARtmp
In [24]:
 
# Inspecting the BAM files:
ls -l *.ba[mi]
-rw-r--r-- 1 r0301806 domain users 1351412315 dec  5 17:34 BM1KiCD34ctrl.bam
-rw-r--r-- 1 r0301806 domain users    3133208 dec  5 17:35 BM1KiCD34ctrl.bam.bai
-rw-r--r-- 1 r0301806 domain users 1794427349 dec  5 18:14 BM1KiCD34Imatinib.bam
-rw-r--r-- 1 r0301806 domain users    3148552 dec  5 18:14 BM1KiCD34Imatinib.bam.bai
-rw-r--r-- 1 r0301806 domain users 1605362021 dec  5 17:44 BM9iCD34ctrl.bam
-rw-r--r-- 1 r0301806 domain users    3030368 dec  5 17:44 BM9iCD34ctrl.bam.bai
-rw-r--r-- 1 r0301806 domain users 1756297414 dec  5 18:25 BM9iCD34Imatinib.bam
-rw-r--r-- 1 r0301806 domain users    3015256 dec  5 18:26 BM9iCD34Imatinib.bam.bai
-rw-r--r-- 1 r0301806 domain users 1353637052 dec  5 17:52 CML15iCD34ctrl.bam
-rw-r--r-- 1 r0301806 domain users    3491712 dec  5 17:52 CML15iCD34ctrl.bam.bai
-rw-r--r-- 1 r0301806 domain users 1752153628 dec  5 18:37 CML15iCD34Imatinib.bam
-rw-r--r-- 1 r0301806 domain users    3628768 dec  5 18:37 CML15iCD34Imatinib.bam.bai
-rw-r--r-- 1 r0301806 domain users 1954045833 dec  5 18:03 CML17iCD34ctrl.bam
-rw-r--r-- 1 r0301806 domain users    3693024 dec  5 18:04 CML17iCD34ctrl.bam.bai
-rw-r--r-- 1 r0301806 domain users 1688825705 dec  5 18:48 CML17iCD34Imatinib.bam
-rw-r--r-- 1 r0301806 domain users    3572904 dec  5 18:49 CML17iCD34Imatinib.bam.bai
In [25]:
 
# If we look at one of them (via head!! Otherwise it will crash), we can see some of the aligned reads:
samtools view BM1KiCD34ctrl.bam | head -3
SRR1536061.53846	0	chrM	1	255	5S68M	*	0	0	CGATGGATCACAGGTCTATCACCCTATTAACCACTCACGGGAGCTCTCCATGCATTTGGTATTTTCGTCTGGG	BCCFFFFFHHHHGJHHIJJJJJJJJJJJJJJIIJIIJJJJIIJIJJJJJJJJJIIJJJIFGHJJJJHHGFFFF	NH:i:1	HI:i:1	AS:i:66	nM:i:0
SRR1536061.1957653	0	chrM	1	255	6S67M	*	0	0	CCGATGGATCACAGGTCTATCACCCTATTAACCACTCACGGGAGCTCTCCATGCATTTGGTATTTTCGTCTGG	CCCFFFDDDFHHHJJHHGIGHIJJJJIJIGGIGIJJJJJJIJJJIGIJJJJJJJGJIIJGCEHGHEHHHFFEC	NH:i:1	HI:i:1	AS:i:65	nM:i:0
SRR1536061.4270660	0	chrM	1	255	9S64M	*	0	0	ATCACGATGGATCACAGGTCTATCACCCTATTAACCACTCACGGGAGCTCTCCATGCATTTGGTATTTTCGTC	CCCFFFFFHHHHHJJJJJHGIJJJJJJIJJJJJJJIJJJJJJJJJJJJJJJJJJJJJJJJJJJEHHHHHHFFF	NH:i:1	HI:i:1	AS:i:62	nM:i:0
samtools view: writing to standard output failed: Broken pipe
samtools view: error closing standard output: -1
In [31]:
 
# The format of the BAM output is the same as that of the SAM output.
# Via idxstats you can see how many reads map to each chromosome:
# 4 columns: the reference sequence name, the sequence length, the number of mapped reads and number of unmapped reads
​
samtools idxstats BM1KiCD34ctrl.bam
chrM	16571	2423932	0
chr1	249250621	3724864	0
chr2	243199373	1975278	0
chr3	198022430	1565883	0
chr4	191154276	847480	0
chr5	180915260	1584134	0
chr6	171115067	1681343	0
chr7	159138663	1731045	0
chr8	146364022	1005674	0
chr9	141213431	1370783	0
chr10	135534747	1086201	0
chr11	135006516	2092541	0
chr12	133851895	2424916	0
chr13	115169878	492436	0
chr14	107349540	818455	0
chr15	102531392	1025571	0
chr16	90354753	1660501	0
chr17	81195210	2582774	0
chr18	78077248	341374	0
chr19	59128983	2749573	0
chr20	63025520	859694	0
chr21	48129895	369593	0
chr22	51304566	863832	0
chrX	155270560	1136491	0
chrY	59373566	114167	0
*	0	0	0
In [32]:
 
samtools idxstats BM1KiCD34Imatinib.bam
chrM	16571	2448618	0
chr1	249250621	4634220	0
chr2	243199373	2748754	0
chr3	198022430	2169814	0
chr4	191154276	1206978	0
chr5	180915260	2075143	0
chr6	171115067	2276670	0
chr7	159138663	2286451	0
chr8	146364022	1203576	0
chr9	141213431	1824734	0
chr10	135534747	1498865	0
chr11	135006516	2541813	0
chr12	133851895	3042908	0
chr13	115169878	669595	0
chr14	107349540	1215391	0
chr15	102531392	1451207	0
chr16	90354753	2033719	0
chr17	81195210	3264250	0
chr18	78077248	478072	0
chr19	59128983	2983153	0
chr20	63025520	1082395	0
chr21	48129895	405299	0
chr22	51304566	1111538	0
chrX	155270560	1814735	0
chrY	59373566	88609	0
*	0	0	0
In [33]:
 
samtools idxstats BM9iCD34ctrl.bam
chrM	16571	2940103	0
chr1	249250621	4252628	0
chr2	243199373	2210641	0
chr3	198022430	1815239	0
chr4	191154276	970944	0
chr5	180915260	1844703	0
chr6	171115067	1982142	0
chr7	159138663	1982452	0
chr8	146364022	1141345	0
chr9	141213431	1576072	0
chr10	135534747	1245949	0
chr11	135006516	2408763	0
chr12	133851895	2734455	0
chr13	115169878	574165	0
chr14	107349540	927776	0
chr15	102531392	1181059	0
chr16	90354753	1859445	0
chr17	81195210	2952721	0
chr18	78077248	391497	0
chr19	59128983	3119460	0
chr20	63025520	976693	0
chr21	48129895	398584	0
chr22	51304566	981033	0
chrX	155270560	1299639	0
chrY	59373566	132010	0
*	0	0	0
In [34]:
 
samtools idxstats BM9iCD34Imatinib.bam
chrM	16571	2532861	0
chr1	249250621	4576196	0
chr2	243199373	2694952	0
chr3	198022430	2127437	0
chr4	191154276	1174529	0
chr5	180915260	2036603	0
chr6	171115067	2252667	0
chr7	159138663	2224495	0
chr8	146364022	1178883	0
chr9	141213431	1814060	0
chr10	135534747	1462155	0
chr11	135006516	2496213	0
chr12	133851895	2985442	0
chr13	115169878	654677	0
chr14	107349540	1181820	0
chr15	102531392	1446279	0
chr16	90354753	1973230	0
chr17	81195210	3235389	0
chr18	78077248	470002	0
chr19	59128983	2973468	0
chr20	63025520	1066902	0
chr21	48129895	400492	0
chr22	51304566	1098591	0
chrX	155270560	1811927	0
chrY	59373566	90265	0
*	0	0	0
In [35]:
 
samtools idxstats CML15iCD34ctrl.bam
chrM	16571	3921728	0
chr1	249250621	4562188	0
chr2	243199373	2361501	0
chr3	198022430	1917332	0
chr4	191154276	1137532	0
chr5	180915260	2039193	0
chr6	171115067	1924827	0
chr7	159138663	2009158	0
chr8	146364022	1039499	0
chr9	141213431	1634808	0
chr10	135534747	1256826	0
chr11	135006516	2117889	0
chr12	133851895	2656888	0
chr13	115169878	637737	0
chr14	107349540	1012502	0
chr15	102531392	1292377	0
chr16	90354753	1739558	0
chr17	81195210	2781670	0
chr18	78077248	451269	0
chr19	59128983	2523633	0
chr20	63025520	944286	0
chr21	48129895	336343	0
chr22	51304566	925771	0
chrX	155270560	1320811	0
chrY	59373566	101469	0
*	0	0	0
In [36]:
 
samtools idxstats CML15iCD34Imatinib.bam
chrM	16571	4407509	0
chr1	249250621	5914564	0
chr2	243199373	3107560	0
chr3	198022430	2613746	0
chr4	191154276	1554411	0
chr5	180915260	2708814	0
chr6	171115067	2584384	0
chr7	159138663	2639032	0
chr8	146364022	1440857	0
chr9	141213431	2163922	0
chr10	135534747	1767453	0
chr11	135006516	2941344	0
chr12	133851895	3581635	0
chr13	115169878	880348	0
chr14	107349540	1335422	0
chr15	102531392	1809984	0
chr16	90354753	2132110	0
chr17	81195210	3582046	0
chr18	78077248	599512	0
chr19	59128983	3144318	0
chr20	63025520	1287982	0
chr21	48129895	439303	0
chr22	51304566	1183385	0
chrX	155270560	1842582	0
chrY	59373566	140380	0
*	0	0	0
In [37]:
 
samtools idxstats CML17iCD34ctrl.bam
chrM	16571	4784721	0
chr1	249250621	6658417	0
chr2	243199373	3640794	0
chr3	198022430	2966055	0
chr4	191154276	1764557	0
chr5	180915260	3137986	0
chr6	171115067	3072552	0
chr7	159138663	3039195	0
chr8	146364022	1622578	0
chr9	141213431	2545818	0
chr10	135534747	1886831	0
chr11	135006516	3392428	0
chr12	133851895	3989660	0
chr13	115169878	976725	0
chr14	107349540	1543591	0
chr15	102531392	2041557	0
chr16	90354753	2535756	0
chr17	81195210	4264742	0
chr18	78077248	687298	0
chr19	59128983	3778754	0
chr20	63025520	1374573	0
chr21	48129895	489333	0
chr22	51304566	1404643	0
chrX	155270560	2035964	0
chrY	59373566	163420	0
*	0	0	0
In [38]:
 
samtools idxstats CML17iCD34Imatinib.bam
chrM	16571	3628615	0
chr1	249250621	5629005	0
chr2	243199373	3034395	0
chr3	198022430	2550732	0
chr4	191154276	1499595	0
chr5	180915260	2601427	0
chr6	171115067	2556533	0
chr7	159138663	2612734	0
chr8	146364022	1427909	0
chr9	141213431	2142621	0
chr10	135534747	1706361	0
chr11	135006516	2980791	0
chr12	133851895	3464962	0
chr13	115169878	840544	0
chr14	107349540	1287069	0
chr15	102531392	1774950	0
chr16	90354753	2117487	0
chr17	81195210	3639391	0
chr18	78077248	570364	0
chr19	59128983	3312195	0
chr20	63025520	1286123	0
chr21	48129895	434038	0
chr22	51304566	1206153	0
chrX	155270560	1819299	0
chrY	59373566	140029	0
*	0	0	0
In [39]:
 
# Running samtools flagstat tells us what the distribution of mapping flags (column 2 in the sam/bam file) is:
​
# 0x0001    p    the read is paired in sequencing
# 0x0002    P    the read is mapped in a proper pair
# 0x0004    u    the query sequence itself is unmapped
# 0x0008    U    the mate is unmapped
# 0x0010    r    strand of the query (1 for reverse)
# 0x0020    R    strand of the mate
# 0x0040    1    the read is the first read in a pair
# 0x0080    2    the read is the second read in a pair
# 0x0100    s    the alignment is not primary
# 0x0200    f    the read fails platform/vendor quality checks
# 0x0400    d    the read is either a PCR or an optical duplicate
# 0x0800    S    the alignment is supplementary
​
# info : http://www.htslib.org/doc/samtools.html
​
samtools flagstat BM1KiCD34ctrl.bam
36528535 + 0 in total (QC-passed reads + QC-failed reads)
3994477 + 0 secondary
0 + 0 supplementary
0 + 0 duplicates
36528535 + 0 mapped (100.00% : N/A)
0 + 0 paired in sequencing
0 + 0 read1
0 + 0 read2
0 + 0 properly paired (N/A : N/A)
0 + 0 with itself and mate mapped
0 + 0 singletons (N/A : N/A)
0 + 0 with mate mapped to a different chr
0 + 0 with mate mapped to a different chr (mapQ>=5)
In [40]:
 
samtools flagstat BM1KiCD34Imatinib.bam
46556507 + 0 in total (QC-passed reads + QC-failed reads)
4901155 + 0 secondary
0 + 0 supplementary
0 + 0 duplicates
46556507 + 0 mapped (100.00% : N/A)
0 + 0 paired in sequencing
0 + 0 read1
0 + 0 read2
0 + 0 properly paired (N/A : N/A)
0 + 0 with itself and mate mapped
0 + 0 singletons (N/A : N/A)
0 + 0 with mate mapped to a different chr
0 + 0 with mate mapped to a different chr (mapQ>=5)
In [41]:
 
samtools flagstat BM9iCD34ctrl.bam
41899518 + 0 in total (QC-passed reads + QC-failed reads)
4800570 + 0 secondary
0 + 0 supplementary
0 + 0 duplicates
41899518 + 0 mapped (100.00% : N/A)
0 + 0 paired in sequencing
0 + 0 read1
0 + 0 read2
0 + 0 properly paired (N/A : N/A)
0 + 0 with itself and mate mapped
0 + 0 singletons (N/A : N/A)
0 + 0 with mate mapped to a different chr
0 + 0 with mate mapped to a different chr (mapQ>=5)
In [42]:
 
samtools flagstat BM9iCD34Imatinib.bam
45959535 + 0 in total (QC-passed reads + QC-failed reads)
4837686 + 0 secondary
0 + 0 supplementary
0 + 0 duplicates
45959535 + 0 mapped (100.00% : N/A)
0 + 0 paired in sequencing
0 + 0 read1
0 + 0 read2
0 + 0 properly paired (N/A : N/A)
0 + 0 with itself and mate mapped
0 + 0 singletons (N/A : N/A)
0 + 0 with mate mapped to a different chr
0 + 0 with mate mapped to a different chr (mapQ>=5)
In [43]:
 
samtools flagstat CML15iCD34ctrl.bam
42646795 + 0 in total (QC-passed reads + QC-failed reads)
8509125 + 0 secondary
0 + 0 supplementary
0 + 0 duplicates
42646795 + 0 mapped (100.00% : N/A)
0 + 0 paired in sequencing
0 + 0 read1
0 + 0 read2
0 + 0 properly paired (N/A : N/A)
0 + 0 with itself and mate mapped
0 + 0 singletons (N/A : N/A)
0 + 0 with mate mapped to a different chr
0 + 0 with mate mapped to a different chr (mapQ>=5)
In [44]:
 
samtools flagstat CML15iCD34Imatinib.bam
55802603 + 0 in total (QC-passed reads + QC-failed reads)
11004048 + 0 secondary
0 + 0 supplementary
0 + 0 duplicates
55802603 + 0 mapped (100.00% : N/A)
0 + 0 paired in sequencing
0 + 0 read1
0 + 0 read2
0 + 0 properly paired (N/A : N/A)
0 + 0 with itself and mate mapped
0 + 0 singletons (N/A : N/A)
0 + 0 with mate mapped to a different chr
0 + 0 with mate mapped to a different chr (mapQ>=5)
In [45]:
 
samtools flagstat CML17iCD34ctrl.bam
63797948 + 0 in total (QC-passed reads + QC-failed reads)
13224757 + 0 secondary
0 + 0 supplementary
0 + 0 duplicates
63797948 + 0 mapped (100.00% : N/A)
0 + 0 paired in sequencing
0 + 0 read1
0 + 0 read2
0 + 0 properly paired (N/A : N/A)
0 + 0 with itself and mate mapped
0 + 0 singletons (N/A : N/A)
0 + 0 with mate mapped to a different chr
0 + 0 with mate mapped to a different chr (mapQ>=5)
In [46]:
 
samtools flagstat CML17iCD34Imatinib.bam
54263322 + 0 in total (QC-passed reads + QC-failed reads)
10637089 + 0 secondary
0 + 0 supplementary
0 + 0 duplicates
54263322 + 0 mapped (100.00% : N/A)
0 + 0 paired in sequencing
0 + 0 read1
0 + 0 read2
0 + 0 properly paired (N/A : N/A)
0 + 0 with itself and mate mapped
0 + 0 singletons (N/A : N/A)
0 + 0 with mate mapped to a different chr
0 + 0 with mate mapped to a different chr (mapQ>=5)
In [47]:
 
# reads to gene counts: 
# First we'll make a symbolic link to (a part of!) the human annotation.
ln -sf /mnt/nfs/data/RNA-seq/gencode.v19.nopseudo.plus.sort.gtf
ls -l *gtf
lrwxrwxrwx 1 r0301806 domain users 56 dec  5 19:20 gencode.v19.nopseudo.plus.sort.gtf -> /mnt/nfs/data/RNA-seq/gencode.v19.nopseudo.plus.sort.gtf
In [48]:
 
head -3 gencode.v19.nopseudo.plus.sort.gtf
##description: evidence-based annotation of the human genome (GRCh37), version 19 (Ensembl 74)
##provider: GENCODE
##contact: gencode@sanger.ac.uk
In [49]:
 
featureCounts --help
featureCounts: unrecognized option '--help'

Version 1.5.0-p1

Usage: featureCounts [options] -a <annotation_file> -o <output_file> input_file1 [input_file2] ... 

Required arguments:

  -a <string>         Name of an annotation file. GTF format by default. See -F 
                      option for more formats.

  -o <string>         Name of the output file including read counts. A separate 
                      file including summary statistics of counting results is 
                      also included in the output (`<string>.summary')

  input_files         List of input files in BAM or SAM format. Users do not 
                      need to specify it is BAM or SAM.

Optional arguments:

  -A <string>         Name of a comma delimited file including chromosome alias 
                      names used to match chromosome names used in annotation 
                      with those used in BAM/SAM input, if they are different. 
                      See Users Guide for file format.

  -F <string>         Specify format of provided annotation file. Acceptable 
                      formats include `GTF' and `SAF'. `GTF' by default. See 
                      Users Guide for description of SAF format.

  -t <string>         Specify feature type in GTF annotation. `exon' by 
                      default. Features used for read counting will be 
                      extracted from annotation using the provided value.

  -g <string>         Specify attribute type in GTF annotation. `gene_id' by 
                      default. Meta-features used for read counting will be 
                      extracted from annotation using the provided value.

  -f                  Perform read counting at feature level (eg. counting 
                      reads for exons rather than genes).

  -O                  Assign reads to all their overlapping meta-features (or 
                      features if -f is specified).

  -s <int>            Perform strand-specific read counting. Possible values:  
                      0 (unstranded), 1 (stranded) and 2 (reversely stranded). 
                      0 by default.

  -M                  Multi-mapping reads will also be counted. For a multi-
                      mapping read, all its reported alignments will be 
                      counted. The `NH' tag in BAM/SAM input is used to detect 
                      multi-mapping reads.

  -Q <int>            The minimum mapping quality score a read must satisfy in
                      order to be counted. For paired-end reads, at least one
                      end should satisfy this criteria. 0 by default.

  -T <int>            Number of the threads. 1 by default.

  -v                  Output version of the program.

  -J                  Count number of reads supporting each exon-exon junction.
                      Junctions were identified from those exon-spanning reads
                      in the input (containing 'N' in CIGAR string). Counting
                      results are saved to a file named '<output_file>.jcounts'

  -G <string>         The Fasta file containing the reference genome used in
                      generating the input SAM or BAM files. This argument is
                      only needed when doing junction counting.

  -R                  Output detailed assignment result for each read. A text 
                      file will be generated for each input file, including 
                      names of reads and meta-features/features reads were 
                      assigned to. See Users Guide for more details.

  --largestOverlap    Assign reads to a meta-feature/feature that has the 
                      largest number of overlapping bases.

  --minOverlap <int>  Specify minimum number of overlapping bases requried 
                      between a read and a meta-feature/feature that the read 
                      is assigned to. 1 by default.

  --read2pos <5:3>    Reduce reads to their 5' most base or 3' most base. Read
                      counting is then performed based on the single base the 
                      read is reduced to.

  --readExtension5 <int> Reads are extended upstream by <int> bases from their
                      5' end.

  --readExtension3 <int> Reads are extended upstream by <int> bases from their
                      3' end.

  --fraction          Use a fractional count 1/n, instead of 1 (one) count, for 
                      each reported alignment of a multi-mapping read in read 
                      counting. n is total number of alignments reported for 
                      the multi-mapping read. This option must be used together 
                      with '-M' option.

  --primary           Count primary alignments only. Primary alignments are 
                      identified using bit 0x100 in SAM/BAM FLAG field.

  --ignoreDup         Ignore duplicate reads in read counting. Duplicate reads 
                      are identified using bit Ox400 in BAM/SAM FLAG field. The 
                      whole read pair is ignored if one of the reads is a 
                      duplicate read for paired end data.

  --countSplitAlignmentsOnly Count split alignments only (ie. alignments with 
                      CIGAR string containing `N'). An example of split 
                      alignments is exon-spanning reads in RNA-seq data.

  -p                  Count fragments (read pairs) instead of individual reads. 
                      For each read pair, its two reads must be adjacent to 
                      each other in BAM/SAM input.

  -P                  Check validity of paired-end distance when counting read 
                      pairs. Use -d and -D to set thresholds.

  -d <int>            Minimum fragment/template length, 50 by default.

  -D <int>            Maximum fragment/template length, 600 by default.

  -B                  Count read pairs that have both ends successfully aligned 
                      only.

  -S <ff:fr:rf>       Specify orientation of two reads from the same pair, 'fr' 
                      by by default (forward/reverse).

  -C                  Do not count read pairs that have their two ends mapping 
                      to different chromosomes or mapping to same chromosome 
                      but on different strands.

  --donotsort         Do not sort reads in BAM/SAM input. Note that reads from 
                      the same pair are required to be located next to each 
                      other in the input.

  --maxMOp <int>      Maximum number of 'M' operations allowed in a CIGAR string
                      . 10 by default. Both 'X' and '=' are treated as 'M' and
                      adjacent 'M' operations are merged in the CIGAR string.

In [9]:
 
cd /mnt/storage/r0301806/RNAseqgroepswerk
In [10]:
 
# featureCounts = read summarization program that counts mapped reads for genomic features such as genes, exons, 
# promoter, gene bodies, genomic bins and chromosomal locations. It can be used to count both RNA-seq and 
# genomic DNA-seq reads.
​
    # -Q: The minimum mapping quality score (10)
    # -g: gene name 
    # -a: name of the annotation file (gtf)
    # -o: output file name
    
 featureCounts \
        -Q 10 \
        -g gene_name \
        -a /mnt/nfs/data/RNA-seq/gencode.v19.nopseudo.plus.sort.gtf \
        -o all.CMLcounts2 \
        CML15iCD34ctrl.bam CML15iCD34Imatinib.bam CML17iCD34ctrl.bam CML17iCD34Imatinib.bam
        
# Note: This was also done for bone marrow bam files! (/mnt/storage/r0304814/RNAseqgroepswerk)
        ==========     _____ _    _ ____  _____  ______          _____  
        =====         / ____| |  | |  _ \|  __ \|  ____|   /\   |  __ \ 
          =====      | (___ | |  | | |_) | |__) | |__     /  \  | |  | |
            ====      \___ \| |  | |  _ <|  _  /|  __|   / /\ \ | |  | |
              ====    ____) | |__| | |_) | | \ \| |____ / ____ \| |__| |
        ==========   |_____/ \____/|____/|_|  \_\______/_/    \_\_____/
	v1.5.0-p1

//========================== featureCounts setting ===========================\\
||                                                                            ||
||             Input files : 4 BAM files                                      ||
||                           S CML15iCD34ctrl.bam                             ||
||                           S CML15iCD34Imatinib.bam                         ||
||                           S CML17iCD34ctrl.bam                             ||
||                           S CML17iCD34Imatinib.bam                         ||
||                                                                            ||
||             Output file : all.CMLcounts2                                   ||
||             Annotations : /mnt/nfs/data/RNA-seq/gencode.v19.nopseudo.p ... ||
||                                                                            ||
||                 Threads : 1                                                ||
||                   Level : meta-feature level                               ||
||              Paired-end : no                                               ||
||         Strand specific : no                                               ||
||      Multimapping reads : not counted                                      ||
|| Multi-overlapping reads : not counted                                      ||
||       Read orientations : fr                                               ||
||                                                                            ||
\\===================== http://subread.sourceforge.net/ ======================//

//================================= Running ==================================\\
||                                                                            ||
|| Load annotation file /mnt/nfs/data/RNA-seq/gencode.v19.nopseudo.plus.s ... ||
||    Features : 1156385                                                      ||
||    Meta-features : 41863                                                   ||
||    Chromosomes/contigs : 25                                                ||
||                                                                            ||
|| Process BAM file CML15iCD34ctrl.bam...                                     ||
||    Single-end reads are included.                                          ||
||    Assign reads to features...                                             ||
||    Total reads : 42646795                                                  ||
||    Successfully assigned reads : 25158804 (59.0%)                          ||
||    Running time : 0.92 minutes                                             ||
||                                                                            ||
|| Process BAM file CML15iCD34Imatinib.bam...                                 ||
||    Single-end reads are included.                                          ||
||    Assign reads to features...                                             ||
||    Total reads : 55802603                                                  ||
||    Successfully assigned reads : 33355831 (59.8%)                          ||
||    Running time : 1.14 minutes                                             ||
||                                                                            ||
|| Process BAM file CML17iCD34ctrl.bam...                                     ||
||    Single-end reads are included.                                          ||
||    Assign reads to features...                                             ||
||    Total reads : 63797948                                                  ||
||    Successfully assigned reads : 37581905 (58.9%)                          ||
||    Running time : 1.27 minutes                                             ||
||                                                                            ||
|| Process BAM file CML17iCD34Imatinib.bam...                                 ||
||    Single-end reads are included.                                          ||
||    Assign reads to features...                                             ||
||    Total reads : 54263322                                                  ||
||    Successfully assigned reads : 32760947 (60.4%)                          ||
||    Running time : 1.12 minutes                                             ||
||                                                                            ||
||                         Read assignment finished.                          ||
||                                                                            ||
\\===================== http://subread.sourceforge.net/ ======================//

In [11]:
 
ls -l *.CMLcounts*
-rw-r--r-- 1 r0301806 domain users 9172909 dec  5 19:28 all.CMLcounts
-rw-r--r-- 1 r0301806 domain users 8707003 jan 25 18:14 all.CMLcounts2
-rw-r--r-- 1 r0301806 domain users     515 jan 25 18:14 all.CMLcounts2.summary
-rw-r--r-- 1 r0301806 domain users     781 dec  5 19:28 all.CMLcounts.summary
In [12]:
 
head -20 all.CMLcounts2.summary | column -t
Status                     CML15iCD34ctrl.bam  CML15iCD34Imatinib.bam  CML17iCD34ctrl.bam  CML17iCD34Imatinib.bam
Assigned                   25158804            33355831                37581905            32760947
Unassigned_Ambiguity       1659080             2295545                 2645369             2336646
Unassigned_MultiMapping    0                   0                       0                   0
Unassigned_NoFeatures      2742696             3360548                 3471454             2999157
Unassigned_Unmapped        0                   0                       0                   0
Unassigned_MappingQuality  13086215            16790679                20099220            16166572
Unassigned_FragmentLength  0                   0                       0                   0
Unassigned_Chimera         0                   0                       0                   0
Unassigned_Secondary       0                   0                       0                   0
Unassigned_Nonjunction     0                   0                       0                   0
Unassigned_Duplicate       0                   0                       0                   0
In [13]:
 
head all.CMLcounts2
#
 Program:featureCounts v1.5.0-p1; Command:"featureCounts" "-Q" "10" "-g"
 "gene_name" "-a" 
"/mnt/nfs/data/RNA-seq/gencode.v19.nopseudo.plus.sort.gtf" "-o" 
"all.CMLcounts2" "CML15iCD34ctrl.bam" "CML15iCD34Imatinib.bam" 
"CML17iCD34ctrl.bam" "CML17iCD34Imatinib.bam" 
Geneid	Chr	Start	End	Strand	Length	CML15iCD34ctrl.bam	
CML15iCD34Imatinib.bam	CML17iCD34ctrl.bam	CML17iCD34Imatinib.bam
MIR1302-11	chr1;chr1;chr1	29554;30267;30976	30039;30667;31109	+;+;+	1021
	0	0	0	0
FAM138A	chr1;chr1;chr1	34554;35245;35721	35174;35481;36081	-;-;-	1219	0	0
	0	0
OR4F5	chr1	69091	70008	+	918	0	0	0	0
RP11-34P13.7	chr1;chr1;chr1;chr1;chr1;chr1;chr1	
89295;92091;110953;112700;120721;129055;133374	
91629;92240;111357;112804;120932;129223;133566	-;-;-;-;-;-;-	3569	0	3	0	2
RP11-34P13.8	chr1;chr1	89551;90287	90050;91105	-;-	1319	0	0	0	0
AL627309.1	chr1;chr1	134901;137621	135802;139379	-;-	2661	150	188	204	
176
RP11-34P13.14	chr1;chr1	139790;140075	139847;140339	-;-	323	4	2	11	4
RP11-34P13.13	chr1;chr1;chr1;chr1;chr1;chr1;chr1;chr1;chr1;chr1	
141474;146386;155767;164263;165884;168100;168610;169049;172557;173753	
143011;149707;155831;164791;165942;168165;168767;169264;172688;173862	
-;-;-;-;-;-;-;-;-;-	6195	8	28	22	20
In [14]:
 
cut -f-6 all.CMLcounts2 > all.genedataCML2.tsv
In [15]:
 
head all.genedataCML2.tsv
#
 Program:featureCounts v1.5.0-p1; Command:"featureCounts" "-Q" "10" "-g"
 "gene_name" "-a" 
"/mnt/nfs/data/RNA-seq/gencode.v19.nopseudo.plus.sort.gtf" "-o" 
"all.CMLcounts2" "CML15iCD34ctrl.bam" "CML15iCD34Imatinib.bam" 
"CML17iCD34ctrl.bam" "CML17iCD34Imatinib.bam" 
Geneid	Chr	Start	End	Strand	Length
MIR1302-11	chr1;chr1;chr1	29554;30267;30976	30039;30667;31109	+;+;+	1021
FAM138A	chr1;chr1;chr1	34554;35245;35721	35174;35481;36081	-;-;-	1219
OR4F5	chr1	69091	70008	+	918
RP11-34P13.7	chr1;chr1;chr1;chr1;chr1;chr1;chr1	
89295;92091;110953;112700;120721;129055;133374	
91629;92240;111357;112804;120932;129223;133566	-;-;-;-;-;-;-	3569
RP11-34P13.8	chr1;chr1	89551;90287	90050;91105	-;-	1319
AL627309.1	chr1;chr1	134901;137621	135802;139379	-;-	2661
RP11-34P13.14	chr1;chr1	139790;140075	139847;140339	-;-	323
RP11-34P13.13	chr1;chr1;chr1;chr1;chr1;chr1;chr1;chr1;chr1;chr1	
141474;146386;155767;164263;165884;168100;168610;169049;172557;173753	
143011;149707;155831;164791;165942;168165;168767;169264;172688;173862	
-;-;-;-;-;-;-;-;-;-	6195
In [16]:
 
cut -f1,7- all.CMLcounts2 | grep -v '^#' > all.geneCML.counts2.tsv
In [17]:
 
head -50 all.geneCML.counts2.tsv
Geneid	CML15iCD34ctrl.bam	CML15iCD34Imatinib.bam	CML17iCD34ctrl.bam	CML17iCD34Imatinib.bam
MIR1302-11	0	0	0	0
FAM138A	0	0	0	0
OR4F5	0	0	0	0
RP11-34P13.7	0	3	0	2
RP11-34P13.8	0	0	0	0
AL627309.1	150	188	204	176
RP11-34P13.14	4	2	11	4
RP11-34P13.13	8	28	22	20
RNU6-1100P	0	0	0	0
RP11-34P13.9	0	2	1	1
AP006222.2	4	5	6	2
RP4-669L17.10	18	15	24	14
OR4F29	0	0	0	0
RP4-669L17.2	0	0	1	0
RP5-857K21.15	0	0	0	0
RP5-857K21.1	0	1	0	0
RP5-857K21.2	0	0	0	1
RP5-857K21.3	0	0	0	0
RP5-857K21.4	0	0	0	0
RP5-857K21.5	0	0	0	0
OR4F16	0	0	0	0
RP11-206L10.3	18	18	13	11
RNU6-1199P	0	0	0	0
RP11-206L10.5	0	0	0	0
RP11-206L10.4	0	0	0	0
RP11-206L10.2	23	27	30	16
RP11-206L10.9	22	52	37	40
AL669831.1	0	1	0	0
RP11-206L10.10	5	3	3	2
FAM87B	7	2	6	6
LINC00115	33	41	36	45
RP11-206L10.11	349	369	446	414
FAM41C	0	2	4	1
AL645608.2	0	0	0	0
RP11-54O7.16	9	3	6	3
RP11-54O7.1	229	251	328	285
RP11-54O7.2	0	0	0	0
RP11-54O7.3	21	18	22	15
SAMD11	5	6	2	9
AL645608.1	0	1	1	0
NOC2L	5137	4834	7488	4932
KLHL17	876	782	917	723
PLEKHN1	4	0	3	0
C1orf170	1	0	0	0
RP11-54O7.17	0	0	0	0
HES4	3	3	9	10
RP11-54O7.11	0	0	0	0
ISG15	571	932	829	1849
AGRN	431	396	698	524
In [19]:
 
# Because OLFM4 was mentioned as upregulated gene in the article, we did a quick check.
grep OLFM4 all.geneCML.counts2.tsv
OLFM4	1251	4088	2988	4785
 
## (The DESeq code in R can be found in the addendum)

(The DESeq code in R can be found in the addendum)

 
# Obtaining .rnk file for GSEA

Obtaining .rnk file for GSEA

In [ ]:
 
cut -f1,3 deseq.CML1results.tsv > deseqcut.rnk # bone marrow samples
cut -f1,3 deseq2.CMLresults.tsv > deseq2cut.rnk # CML samples
In [ ]:
 
sed 1d deseqcut.rnk > deseqcutbm.rnk
sed 1d deseq2cut.rnk > deseqcutcml.rnk
In [ ]:
 
grep -v "NA" deseqcutbm.rnk > deseqcutcleanbm.rnk
grep -v "NA" deseqcutcml.rnk > deseqcutcleancml.rnk
# files are now compatible to be uploaded in GSEA.
 
# ChIPseq 
​
#### (Data can be found in /mnt/storage/r0304814/chip/)

ChIPseq

(Data can be found in /mnt/storage/r0304814/chip/)

In [62]:
 
mkdir -p /mnt/nfs/r0301806/RNAseqgroepswerk/SMAD7/
cd /mnt/nfs/r0301806/RNAseqgroepswerk/SMAD7/
ln -sf /mnt/nfs/storage/r0301806/RNAseqgroepswerk/*.fastq .
In [ ]:
 
# Now we align our reads to the human genome:
cd /mnt/nfs/r0301806/RNAseqgroepswerk/SMAD7/
bowtie2-align -x /mnt/nfs/data/resources/bowtie2/hg19 chipseq1.fastq -S chipseq1.sam
bowtie2-align -x /mnt/nfs/data/resources/bowtie2/hg19 chipseq2.fastq -S chipseq2.sam
In [2]:
 
samtools view -S -b chipseq1.sam > chipseq1.bam
samtools view -S -b chipseq2.sam > chipseq2.bam
In [ ]:
 
samtools sort -O bam -o chipseq1.sorted.bam chipseq1.bam 
samtools sort -O bam -o chipseq2.sorted.bam chipseq2.bam 
In [ ]:
 
samtools index chipseq1.sorted.bam 
samtools index chipseq2.sorted.bam
In [ ]:
 
mkdir -p mymacs2
​
# we want to call peaks to the entire genome (-g hs) with a minimum FDR (q-value) cutoff for peak detection of 0.005:
macs2 callpeak -t  chipseq1.sorted.bam --outdir mymacs2 -n chipseq1 -g hs -q 0.005
macs2 callpeak -t  chipseq2.sorted.bam --outdir mymacs2 -n chipseq2 -g hs -q 0.005
In [ ]:
 
wc -l mymacs2_SMAD7/BM1Kctrl_SMAD7_peaks.narrowPeak
wc -l mymacs2_SMAD7/BM1Kimatinib_SMAD7_peaks.narrowPeak
In [ ]:
 
​